some escaping is necessary after all
This commit is contained in:
parent
0b2e8cf84d
commit
ce86c2fcb0
1 changed files with 4 additions and 4 deletions
8
zshrc
8
zshrc
|
@ -97,8 +97,8 @@ precmd.git()
|
||||||
{
|
{
|
||||||
precmd.is_git_repo || return 0
|
precmd.is_git_repo || return 0
|
||||||
|
|
||||||
local raw_status=$(git status --porcelain -bu 2>/dev/null)
|
local raw_status="$(git status --porcelain -bu 2>/dev/null)"
|
||||||
local branch_info full_status git_status IFS=
|
local branch_info full_status git_status= IFS=
|
||||||
local staged_count=0 unstaged_count=0 untracked_count=0 unmerged_count=0
|
local staged_count=0 unstaged_count=0 untracked_count=0 unmerged_count=0
|
||||||
|
|
||||||
while read line; do
|
while read line; do
|
||||||
|
@ -125,7 +125,7 @@ precmd.git_update() {
|
||||||
kill -s USR1 $$
|
kill -s USR1 $$
|
||||||
}
|
}
|
||||||
TRAPUSR1() {
|
TRAPUSR1() {
|
||||||
prompt_async_data=$(<$prompt_state)
|
prompt_async_data="$(<$prompt_state)"
|
||||||
precmd.prompt
|
precmd.prompt
|
||||||
zle && zle reset-prompt
|
zle && zle reset-prompt
|
||||||
}
|
}
|
||||||
|
@ -147,7 +147,7 @@ colorize() {
|
||||||
alias $cmd="command grc -es --colour=auto $cmd"
|
alias $cmd="command grc -es --colour=auto $cmd"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
if [[ -x $(whence grc) ]]; then
|
if [[ -x "$(whence grc)" ]]; then
|
||||||
colorize
|
colorize
|
||||||
unset -f colorize
|
unset -f colorize
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue