Add user .bashrc and .bash_profile files and slightly modified the system bashrc

This commit is contained in:
2025-04-23 07:38:38 +03:00
parent 53c945b657
commit f562d2d86b
6 changed files with 29 additions and 12 deletions
+5 -4
View File
@@ -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]\$ '