aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2018-03-27 11:48:16 -0300
committerEuAndreh <eu@euandre.org>2018-03-27 11:48:16 -0300
commit1efdd132cc2ab1fa84d6599082aecb1da63de1c9 (patch)
tree16208a77d247f8cbdc528321260a889c2f57a24d /bash
parentRemove trailing newline in =copy= alias (diff)
downloaddotfiles-1efdd132cc2ab1fa84d6599082aecb1da63de1c9.tar.gz
dotfiles-1efdd132cc2ab1fa84d6599082aecb1da63de1c9.tar.xz
Add =git sha7= alias and use it in $PS1
Diffstat (limited to 'bash')
-rw-r--r--bash/colors.sh2
1 files changed, 1 insertions, 1 deletions
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' ";)'