diff --git a/files/.bashrc b/files/.bashrc index 79e284d..34cbfa3 100644 --- a/files/.bashrc +++ b/files/.bashrc @@ -40,12 +40,12 @@ if [ -d ~/git/dotfiles/source ]; then fi # set prompt colors and style -[[ -f ~/.PS1 ]] && . ~/.PS1 || PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$ ' +[[ -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 - source /usr/share/doc/pkgfile/command-not-found.bash -fi +PKG_COMP=/usr/share/doc/pkgfile/command-not-found.bash +[[ -f $PKG_COMP ]] . $PKG_COMP if [ -d ~/.fzf ]; then source ~/.fzf/completion.bash