From 9354fc87366d7c11ed50abf075b47757e709518c Mon Sep 17 00:00:00 2001 From: Bryan Ramos Date: Wed, 12 Apr 2023 18:31:19 -0400 Subject: [PATCH] Adjusted PS1 --- homeConfig/dotfiles/bash/bashrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/homeConfig/dotfiles/bash/bashrc b/homeConfig/dotfiles/bash/bashrc index 83095ba..c5f494e 100644 --- a/homeConfig/dotfiles/bash/bashrc +++ b/homeConfig/dotfiles/bash/bashrc @@ -7,9 +7,13 @@ is_ssh_session() { fi } -# Customizing the PS1 prompt +# PS1 Config if ! is_ssh_session; then - PS1="\n\[\033[01;34m\]\w\[\033[00m\]\n\[\033[01;32m\]> \[\033[00m\]" + 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 else PS1="\n\[\033[01;34m\]\w\[\033[00m\]\n\[\033[01;32m\]\u@\h:\[\033[00m\] " fi