Initial Commit

This commit is contained in:
CapCreeperGR
2024-07-04 15:56:27 +03:00
commit ec99d97743
4 changed files with 77 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
# /etc/profile
# 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/local/sbin'
append_path '/usr/local/bin'
# Unsetting functions
unset -f append_path
# Run /etc/bashrc if in an interactive terminal
if [[ $- == *i* ]]
then
. /etc/bashrc
fi