diff --git a/files/.bashrc b/files/.bashrc index 5132887..79e284d 100644 --- a/files/.bashrc +++ b/files/.bashrc @@ -40,11 +40,7 @@ if [ -d ~/git/dotfiles/source ]; then fi # set prompt colors and style -if [ -f ~/.PS1 ]; then - source ~/.PS1 -else - PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$ ' -fi +[[ -f ~/.PS1 ]] && . ~/.PS1 || PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$ ' # fetch uninstalled package names when attempting command (arch only) if [ -f /usr/share/doc/pkgfile/command-not-found.bash ]; then