Initial Commit

This commit is contained in:
CapCreeperGR
2024-07-08 12:03:55 +00:00
commit 6ca5d30c23
6 changed files with 108 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
# /etc/zprofile
# Function to easily append a directory to PATH
append_path() {
if [ -z "$1" ]; then
return 1
elif ! [ -d "$1" ]; then
return 1
fi
export PATH="$PATH":"$1"
}
# Appending paths
append_path '/usr/sbin'
append_path '/usr/local/bin'
append_path '/usr/local/sbin'
# Source locale.conf
if [ -f /etc/locale.conf ]; then
set -a
. /etc/locale.conf
set +a
fi
# Unsetting functions
unset -f append_path
# Run /etc/zshrc if in an interactive terminal
if [[ $- == *i* ]]
then
. /etc/zshrc
fi
+6
View File
@@ -0,0 +1,6 @@
# /etc/zsh
# Setting zsh prompt if not in chroot
if ! [ -f /tmp/is_chroot ]; then
export PROMPT="[%n@%m %1~]$ "
fi