diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-01-03 22:37:27 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-01-03 22:37:27 +0100 |
commit | 5f21ebc0d3539276ccee967dd510e7aba8b31c0c (patch) | |
tree | bd29c23d4031f1161e704d1d7fc5aa901c38be12 /accounts | |
parent | d48742861083f37c670447ca98fb43490531be80 (diff) | |
download | nixos-5f21ebc0d3539276ccee967dd510e7aba8b31c0c.tar nixos-5f21ebc0d3539276ccee967dd510e7aba8b31c0c.tar.gz nixos-5f21ebc0d3539276ccee967dd510e7aba8b31c0c.tar.bz2 nixos-5f21ebc0d3539276ccee967dd510e7aba8b31c0c.tar.xz nixos-5f21ebc0d3539276ccee967dd510e7aba8b31c0c.zip |
zsh customization
Diffstat (limited to 'accounts')
-rw-r--r-- | accounts/gkleen@sif/zshrc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/accounts/gkleen@sif/zshrc b/accounts/gkleen@sif/zshrc index f095ee21..993fb94a 100644 --- a/accounts/gkleen@sif/zshrc +++ b/accounts/gkleen@sif/zshrc | |||
@@ -383,18 +383,6 @@ alias -g G='| grep' | |||
383 | alias -g B='&> /dev/null &' | 383 | alias -g B='&> /dev/null &' |
384 | alias -g BB='&> /dev/null &!' | 384 | alias -g BB='&> /dev/null &!' |
385 | 385 | ||
386 | fancy-ctrl-z () { | ||
387 | emulate -LR zsh | ||
388 | if [[ $#BUFFER -eq 0 ]]; then | ||
389 | [[ -n $(jobs -s) ]] && bg | ||
390 | zle redisplay | ||
391 | else | ||
392 | zle push-input | ||
393 | fi | ||
394 | } | ||
395 | zle -N fancy-ctrl-z | ||
396 | bindkey '^Z' fancy-ctrl-z | ||
397 | |||
398 | export DEFAULT_USER=gkleen | 386 | export DEFAULT_USER=gkleen |
399 | export EDITOR=emacsclient | 387 | export EDITOR=emacsclient |
400 | 388 | ||