From 119e276af07bfbf24a1bddf40b0552beba9b9883 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Fri, 19 Nov 2021 12:23:51 +0000 Subject: [PATCH] Single PS1 for all users --- roles/home-cli/files/bashrc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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"