diff --git a/lib/git/status_shortcuts.sh b/lib/git/status_shortcuts.sh index 6a9c91d..ede84a6 100644 --- a/lib/git/status_shortcuts.sh +++ b/lib/git/status_shortcuts.sh @@ -44,7 +44,7 @@ git_status_shortcuts() { if [ "$scmbDebug" = "true" ]; then echo "------------------------"; fi # Print status - echo "$cmd_output" | grep -v '@@filelist@@::' + echo "$cmd_output" | command grep -v '@@filelist@@::' zsh_reset # Reset zsh environment to default } @@ -126,7 +126,7 @@ git_show_affected_files(){ f=0 # File count # Show colored revision and commit message echo -n "# "; git show --oneline --name-only $@ | head -n1; echo "# " - for file in $(git show --pretty="format:" --name-only $@ | grep -v '^$'); do + for file in $(git show --pretty="format:" --name-only $@ | command grep -v '^$'); do let f++ export $git_env_char$f=$file # Export numbered variable. echo -e "# \e[2;37m[\e[0m$f\e[2;37m]\e[0m $file"