fancy ctrl-z
This commit is contained in:
parent
9b3bef9554
commit
93539024ca
1 changed files with 11 additions and 0 deletions
|
|
@ -65,6 +65,17 @@ function branch_prompt {
|
|||
fi
|
||||
}
|
||||
|
||||
fancy-ctrl-z () {
|
||||
if [[ $#BUFFER -eq 0 ]]; then
|
||||
bg
|
||||
zle redisplay
|
||||
else
|
||||
zle push-input
|
||||
fi
|
||||
}
|
||||
zle -N fancy-ctrl-z
|
||||
bindkey '^Z' fancy-ctrl-z
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_AHEAD=" %{$YELLOW%}⇈%{$RESET_COLOR%}"
|
||||
ZSH_THEME_GIT_PROMPT_BEHIND=" %{$YELLOW%}⇊%{$RESET_COLOR%}"
|
||||
ZSH_THEME_GIT_PROMPT_DIVERGED=" %{$YELLOW%}⇅%{$RESET_COLOR%}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue