diff options
author | Hendrik Jaeger <jaeger@gyselroth.com> | 2014-11-21 10:51:38 +0100 |
---|---|---|
committer | Hendrik Jaeger <jaeger@gyselroth.com> | 2014-11-21 10:51:38 +0100 |
commit | 44934b91a195f654e812a27282f1c173bc472025 (patch) | |
tree | 844f6acf2f277c66a64df5f38629c0582a5cfcde /.zsh_functions | |
parent | d121eb2f98e35ec2efcac978fbfd2495375e65aa (diff) |
Added vi-mode bindings and set default to vi-mode.
Minor cleanup.
modified: .zsh_functions
deleted: .zshcomprc
modified: .zshrc
Diffstat (limited to '.zsh_functions')
-rw-r--r-- | .zsh_functions | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.zsh_functions b/.zsh_functions index abda777..1d7cc9a 100644 --- a/.zsh_functions +++ b/.zsh_functions @@ -56,3 +56,8 @@ function shufflevideos () { find $@ -type f -iregex ".*\.\(avi\|flv\|mkv\|mpeg\|mpg\|wmv\|wva\|mp4\|webm\|wva\|m4v\|ogm\|mp4\|mov\)" -exec mpv --shuffle $MPVOPTS \{\} + } +function zle-line-init zle-keymap-select { + RPS1="%B${${KEYMAP/vicmd/c}/(main|viins)/}%b" + RPS2=$RPS1 + zle reset-prompt +} |