Single PS1 for all users
This commit is contained in:
parent
3031afe7e7
commit
119e276af0
1 changed files with 3 additions and 5 deletions
|
@ -78,12 +78,10 @@ bind '"\e[B": history-search-forward'
|
||||||
bind 'set bell-style none'
|
bind 'set bell-style none'
|
||||||
bind 'set completion-ignore-case on'
|
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
|
then
|
||||||
export PS1="\[\033[01;35m\]\u@\h\#\[\033[00m\] "
|
alias dnf="/usr/bin/dnf --cacheonly --nogpgcheck"
|
||||||
else
|
|
||||||
export PS1="\[\033[01;35m\]\u@\h\$\[\033[00m\] "
|
|
||||||
alias dnf="dnf --cacheonly --nogpgcheck"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias 7zencrypt="7z a -t7z -p -mhe"
|
alias 7zencrypt="7z a -t7z -p -mhe"
|
||||||
|
|
Loading…
Reference in a new issue