Skip to content

Commit

Permalink
Guard against prompt expansion in vcs_info branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
mafredri committed Feb 16, 2022
1 parent c25ab93 commit 4a04d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pure.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ prompt_pure_async_vcs_info() {

local -A info
info[pwd]=$PWD
info[branch]=$vcs_info_msg_0_
info[branch]=${vcs_info_msg_0_//\%/%%}
info[top]=$vcs_info_msg_1_
info[action]=$vcs_info_msg_2_

Expand Down

0 comments on commit 4a04d19

Please sign in to comment.