diff --git a/roles/home-cli/files/bashrc b/roles/home-cli/files/bashrc index 296f478..a61075f 100644 --- a/roles/home-cli/files/bashrc +++ b/roles/home-cli/files/bashrc @@ -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"