From 1efdd132cc2ab1fa84d6599082aecb1da63de1c9 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 27 Mar 2018 11:48:16 -0300 Subject: Add =git sha7= alias and use it in $PS1 --- bash/colors.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash') diff --git a/bash/colors.sh b/bash/colors.sh index 7548803..6266c10 100644 --- a/bash/colors.sh +++ b/bash/colors.sh @@ -104,7 +104,7 @@ if [ $? -eq 0 ]; then \ else \ # @5 - Changes to working tree echo "'$IRed'"$(__git_ps1 " {%s}")"'$Color_Off'"; \ - fi)" - $(echo "'$IBlack'"`git sha | head -c 7`"'$Color_Off'"); \ + fi)" - $(echo "'$IBlack'"`git sha7`"'$Color_Off'"); \ fi)$(if [[ $IN_NIX_SHELL == 1 ]]; then\ echo "\n'$IBlack'~>'$Color_Off' '$Purple'nix-shell'$Color_Off' ('$BIBlue'$name'$Color_Off')'$Color_Off'" ;\ fi)$(echo "\n'$BIPurple'\$'$Color_Off' ";)' -- cgit v1.2.3