diff --git a/homeConfig/dotfiles/bash/bashrc b/homeConfig/dotfiles/bash/bashrc index c5f494e..4f3efc6 100644 --- a/homeConfig/dotfiles/bash/bashrc +++ b/homeConfig/dotfiles/bash/bashrc @@ -8,14 +8,14 @@ is_ssh_session() { } # PS1 Config -if ! is_ssh_session; then - if [ -n "$IN_NIX_SHELL" ]; then - PS1="\n\[\033[01;34m\]\w\[\033[00m\]\n\[\033[01;32m\]devShell > \[\033[00m\]" - else - PS1="\n\[\033[01;34m\]\w\[\033[00m\]\n\[\033[01;32m\]> \[\033[00m\]" - fi +if [ -n "${IN_NIX_SHELL:+x}" ]; then + PS1="\[\033[01;34m\]\w\[\033[00m\]\n\[\033[01;32m\]devShell > \[\033[00m\]" else - PS1="\n\[\033[01;34m\]\w\[\033[00m\]\n\[\033[01;32m\]\u@\h:\[\033[00m\] " + if ! is_ssh_session; then + PS1="\n\[\033[01;34m\]\w\[\033[00m\]\n\[\033[01;32m\]> \[\033[00m\]" + else + PS1="\n\[\033[01;34m\]\w\[\033[00m\]\n\[\033[01;32m\]\u@\h:\[\033[00m\] " + fi fi # Locate and source the bash-completion scripts