Skip to content

Commit

Permalink
better communication between Python script and shell
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierverdier committed May 30, 2010
1 parent 59f7a97 commit 339016a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gitstatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@
if div_match:
remote = "{behind}{1}{ahead of}{0}".format(*div_match.groups(), **symbols)

print '%s:%s:%s' % (branch,remote,status)
print '\n'.join([branch,remote,status])

2 changes: 1 addition & 1 deletion update_current_git_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ unset __CURRENT_GIT_STATUS

local gitstatus="${HOME}/.zsh/gitstatus.py"
_GIT_STATUS=`python ${gitstatus}`
__CURRENT_GIT_STATUS=("${(s/:/)_GIT_STATUS}")
__CURRENT_GIT_STATUS=("${(f)_GIT_STATUS}")

0 comments on commit 339016a

Please sign in to comment.