In PS1, use $/# in bash, and %/# in zsh

This commit is contained in:
Anthony Rose 2022-08-18 15:10:19 +01:00
parent d84e2f040d
commit 87e3fd03ca

View file

@ -130,10 +130,10 @@ then
bindkey "^[[B" history-beginning-search-forward bindkey "^[[B" history-beginning-search-forward
fi fi
export PS1="\[\033[01m\]\u@\h>\[\033[00m\] " export PS1="\[\033[01m\]\u@\h\\$\[\033[00m\] "
if [ -n "$ZSH_VERSION" ] if [ -n "$ZSH_VERSION" ]
then then
export PS1="%B%n@%m>%b " export PS1="%B%n@%m%#%b "
fi fi
if test $(id -u) -ne 0 && test -x /usr/bin/dnf if test $(id -u) -ne 0 && test -x /usr/bin/dnf