diff options
author | EuAndreh <eu@euandre.org> | 2019-06-01 15:31:59 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-06-01 15:31:59 -0300 |
commit | 4e15cb57fa53a86bef41481bcdd905d87ebc82d9 (patch) | |
tree | 6b25cb84b0d8f9ec45108e834ff7436bd7acdcd6 | |
parent | WIP: format, encrypt and partition the disk in install-nixos.sh (diff) | |
download | dotfiles-4e15cb57fa53a86bef41481bcdd905d87ebc82d9.tar.gz dotfiles-4e15cb57fa53a86bef41481bcdd905d87ebc82d9.tar.xz |
Show if nix-shell is pure or impure in $PS1
-rw-r--r-- | bash/colors.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/colors.sh b/bash/colors.sh index 68acb06..fba940e 100644 --- a/bash/colors.sh +++ b/bash/colors.sh @@ -105,7 +105,7 @@ if [ $? -eq 0 ]; then \ echo `git status` | grep -v "Changes" | grep -E -v "to publish|update your local branch" > /dev/null 2>&1 && echo "'$Green'"$(__git_ps1 " (%s)")"'$Color_Off'"; \ )" - $(echo "'$IBlack'"`git sha7`"'$Color_Off'"); \ fi)$(if [[ $IN_NIX_SHELL != "" ]]; then\ - echo "\n'$IBlack'~>'$Color_Off' '$Purple'nix-shell'$Color_Off' ('$BIBlue'$name'$Color_Off')'$Color_Off'" ;\ + echo "\n'$IBlack'~>'$Color_Off' '$BIPurple''$IN_NIX_SHELL''$Purple' nix-shell'$Color_Off' ('$BIBlue'$name'$Color_Off')'$Color_Off'" ;\ fi)$(if [[ $GUIX_ENVIRONMENT != "" ]]; then\ echo "\n'$IBlack'~>'$Color_Off' '$Purple'guix environment'$Color_Off' ('$BIBlue'$GUIX_ENVIRONMENT'$Color_Off')'$Color_Off'" ;\ fi)$(echo "\n'$BIPurple'\$'$Color_Off' ";)' |