mirror of
https://codeberg.org/hyperreal/dotfiles
synced 2024-11-01 08:43:08 +01:00
+ zman-widget
This commit is contained in:
parent
d889059723
commit
b5d035b3a4
@ -14,27 +14,12 @@ if (( ${+terminfo[smkx]} && ${+terminfo[rmkx]} )); then
|
||||
add-zle-hook-widget -Uz zle-line-finish zle_application_mode_stop
|
||||
fi
|
||||
|
||||
## check if fzf keybindings file exists
|
||||
if test -f /home/jas/.fzf/shell/key-bindings.zsh; then
|
||||
source /home/jas/.fzf/shell/key-bindings.zsh
|
||||
|
||||
page-up-within-tmux() {
|
||||
if (( ${+TMUX} )); then
|
||||
tmux copy-mode -u
|
||||
fi
|
||||
}
|
||||
zle -N page-up-within-tmux
|
||||
|
||||
# page up
|
||||
bindkey "${terminfo[kpp]}" page-up-within-tmux
|
||||
fi
|
||||
|
||||
## keybinding for convenient viewing of man pages
|
||||
if test -x "${HOME}/bin/tman"; then
|
||||
tman-widget() { "${HOME}/bin/tman"}
|
||||
zle -N tman-widget
|
||||
if test -x "${HOME}/bin/zman"; then
|
||||
zman-widget() { "${HOME}/bin/zman"}
|
||||
zle -N zman-widget
|
||||
|
||||
bindkey '^[m' tman-widget
|
||||
bindkey '^[m' zman-widget
|
||||
fi
|
||||
|
||||
## gumosh
|
||||
|
Loading…
Reference in New Issue
Block a user