Add user .bashrc and .bash_profile files and slightly modified the system bashrc
This commit is contained in:
+5
-4
@@ -1,6 +1,7 @@
|
||||
# /etc/bashrc
|
||||
|
||||
# Setting bash prompt if not in chroot
|
||||
if ! [ "$(awk '$5=="/" {print $1}' </proc/1/mountinfo)" != "$(awk '$5=="/" {print $1}' </proc/$$/mountinfo)" ]; then
|
||||
PS1='[\u@\h \W]\$ '
|
||||
fi
|
||||
# Return if not running interactively
|
||||
[[ $- == *i* ]] || return
|
||||
|
||||
# Set bash prompt
|
||||
PS1='[\u@\h \W]\$ '
|
||||
|
||||
Reference in New Issue
Block a user