1
0
Fork 0

some escaping is necessary after all

This commit is contained in:
Von Random 2017-11-09 13:35:50 +03:00
parent 0b2e8cf84d
commit ce86c2fcb0

8
zshrc
View file

@ -97,8 +97,8 @@ precmd.git()
{
precmd.is_git_repo || return 0
local raw_status=$(git status --porcelain -bu 2>/dev/null)
local branch_info full_status git_status IFS=
local raw_status="$(git status --porcelain -bu 2>/dev/null)"
local branch_info full_status git_status= IFS=
local staged_count=0 unstaged_count=0 untracked_count=0 unmerged_count=0
while read line; do
@ -125,7 +125,7 @@ precmd.git_update() {
kill -s USR1 $$
}
TRAPUSR1() {
prompt_async_data=$(<$prompt_state)
prompt_async_data="$(<$prompt_state)"
precmd.prompt
zle && zle reset-prompt
}
@ -147,7 +147,7 @@ colorize() {
alias $cmd="command grc -es --colour=auto $cmd"
done
}
if [[ -x $(whence grc) ]]; then
if [[ -x "$(whence grc)" ]]; then
colorize
unset -f colorize
fi