Forgot other command grep
This commit is contained in:
@@ -44,7 +44,7 @@ git_status_shortcuts() {
|
|||||||
|
|
||||||
if [ "$scmbDebug" = "true" ]; then echo "------------------------"; fi
|
if [ "$scmbDebug" = "true" ]; then echo "------------------------"; fi
|
||||||
# Print status
|
# Print status
|
||||||
echo "$cmd_output" | grep -v '@@filelist@@::'
|
echo "$cmd_output" | command grep -v '@@filelist@@::'
|
||||||
zsh_reset # Reset zsh environment to default
|
zsh_reset # Reset zsh environment to default
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -126,7 +126,7 @@ git_show_affected_files(){
|
|||||||
f=0 # File count
|
f=0 # File count
|
||||||
# Show colored revision and commit message
|
# Show colored revision and commit message
|
||||||
echo -n "# "; git show --oneline --name-only $@ | head -n1; echo "# "
|
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++
|
let f++
|
||||||
export $git_env_char$f=$file # Export numbered variable.
|
export $git_env_char$f=$file # Export numbered variable.
|
||||||
echo -e "# \e[2;37m[\e[0m$f\e[2;37m]\e[0m $file"
|
echo -e "# \e[2;37m[\e[0m$f\e[2;37m]\e[0m $file"
|
||||||
|
|||||||
Reference in New Issue
Block a user