diff options
author | EuAndreh <eu@euandre.org> | 2018-07-17 18:34:05 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2018-07-17 18:34:05 -0300 |
commit | 8ef6a3504481dbd120f984e0d75c012aa3228e3a (patch) | |
tree | 8bb0bbff839e7e0fe821bad5c7bd54684c657945 | |
parent | Add integrity check and signature showing to gitconfig (diff) | |
download | dotfiles-8ef6a3504481dbd120f984e0d75c012aa3228e3a.tar.gz dotfiles-8ef6a3504481dbd120f984e0d75c012aa3228e3a.tar.xz |
Adapt $PS1 prompt for $GUIX_ENVIRONMENT
-rw-r--r-- | bash/colors.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bash/colors.sh b/bash/colors.sh index dde3dd7..90cabc4 100644 --- a/bash/colors.sh +++ b/bash/colors.sh @@ -105,6 +105,8 @@ if [ $? -eq 0 ]; then \ )" - $(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'" ;\ +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' ";)' |