From 7deb0c79090a2130a35fc040503532526ce70f4d Mon Sep 17 00:00:00 2001 From: Jonathan del Strother Date: Thu, 20 Oct 2011 12:11:08 +0100 Subject: [PATCH] Add zsh/shwordsplit compatibility for git_status_shortcuts Necessary so that IFS works as expected --- lib/git/status_shortcuts.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/git/status_shortcuts.sh b/lib/git/status_shortcuts.sh index 793b66e..49a5a11 100644 --- a/lib/git/status_shortcuts.sh +++ b/lib/git/status_shortcuts.sh @@ -17,6 +17,7 @@ # 1 || staged, 2 || unmerged, 3 || unstaged, 4 || untracked # -------------------------------------------------------------------- git_status_shortcuts() { + zsh_compat # Ensure shwordsplit is on for zsh git_clear_vars # Run ruby script, store output cmd_output=$(/usr/bin/env ruby "$scmbDir/lib/git/status_shortcuts.rb" $@) @@ -32,6 +33,7 @@ git_status_shortcuts() { # Print status echo "$cmd_output" | grep -v '@@filelist@@::' + zsh_reset # Reset zsh environment to default }