mirror of
https://gitlab.com/mlunax/dotfiles.git
synced 2025-04-18 16:26:50 +00:00
ctrl-z switch
This commit is contained in:
parent
61d6a2f969
commit
33de9280e0
1 changed files with 11 additions and 0 deletions
11
.zshrc
11
.zshrc
|
@ -18,6 +18,17 @@ for f in $OTHER/*.zsh; do
|
|||
fi
|
||||
done
|
||||
|
||||
# Turn control+z into a toggle switch
|
||||
ctrlz() {
|
||||
if [[ $#BUFFER == 0 ]]; then
|
||||
fg >/dev/null 2>&1 && zle redisplay
|
||||
else
|
||||
zle push-input
|
||||
fi
|
||||
}
|
||||
zle -N ctrlz
|
||||
bindkey '^Z' ctrlz
|
||||
|
||||
if [ -d "$HOME/.zsh-custom" ]; then
|
||||
for f in $HOME/.zsh-custom/*; do
|
||||
if [ -f $f ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue