Skip to content
Browse files

ZSH compatibility fix

This fixes ZSH compatibility by ensuring sh_word_split is on.
  • Loading branch information...
1 parent 7e3d782 commit 2bd5d3ea2fcb85f9b5fd12ac7554f379f8e972cf @g5pw g5pw committed Oct 22, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/git/shell_shortcuts.sh
View
2 lib/git/shell_shortcuts.sh
@@ -106,6 +106,7 @@ if [ -n "$_ll_command" ]; then
fi
# Parse path from args
+ zsh_compat # Ensure sh_word_split is on
OLDIFS="$IFS"; IFS=$'\n'
for arg in $@; do
if [ -d "$arg" ]; then local rel_path="${arg%/}"; fi
@@ -155,6 +156,7 @@ EOF
ll_files="$(ls "$@")"
fi
+ zsh_compat # Ensure sh_word_split is on
OLDIFS="$IFS"; IFS=$'\n'
for file in $ll_files; do
if [ -n "$rel_path" ]; then file="$rel_path/$file"; fi

0 comments on commit 2bd5d3e

Please sign in to comment.
Something went wrong with that request. Please try again.