Add user .bashrc and .bash_profile files and slightly modified the system bashrc
This commit is contained in:
@@ -22,17 +22,17 @@ if [ -f /etc/locale.conf ]; then
|
||||
set +a
|
||||
fi
|
||||
|
||||
# Source scripts in profile.d
|
||||
if [ -d /etc/profile.d ]; then
|
||||
for f in /etc/profile.d/*.sh; do
|
||||
[ -r "$f" ] && source "$f"
|
||||
[ -r "$f" ] && . "$f"
|
||||
done
|
||||
fi
|
||||
|
||||
# Unsetting functions
|
||||
unset -f append_path
|
||||
|
||||
# Run /etc/bashrc if in an interactive terminal
|
||||
if [[ $- == *i* ]]; then
|
||||
. /etc/bashrc
|
||||
# Run /etc/bashrc if running in a non-posix-compliant bash shell and if the file exists
|
||||
if [ -f /etc/bashrc ] && [ -n "$BASH" ] && [ -z "$POSIXLY_CORRECT"]; then
|
||||
. /etc/bashrc
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user