Single PS1 for all users

This commit is contained in:
Anthony Rose 2021-11-19 12:23:51 +00:00
parent 3031afe7e7
commit 119e276af0

View file

@ -78,12 +78,10 @@ bind '"\e[B": history-search-forward'
bind 'set bell-style none'
bind 'set completion-ignore-case on'
if test $(id -u) -eq 0
export PS1="\[\033[01;35m\]\u@\h>\[\033[00m\] "
if test $(id -u) -ne 0 && test -x /usr/bin/dnf
then
export PS1="\[\033[01;35m\]\u@\h\#\[\033[00m\] "
else
export PS1="\[\033[01;35m\]\u@\h\$\[\033[00m\] "
alias dnf="dnf --cacheonly --nogpgcheck"
alias dnf="/usr/bin/dnf --cacheonly --nogpgcheck"
fi
alias 7zencrypt="7z a -t7z -p -mhe"