From d491bebb72caa31a60ea40a538c56c9b39af20d2 Mon Sep 17 00:00:00 2001 From: eeleater Date: Wed, 17 Nov 2021 18:57:54 +0100 Subject: [PATCH] Add dot_config/zsh/keybinds.zsh Update dot_zshrc --- dot_config/zsh/keybinds.zsh | 3 +++ dot_zshrc | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 dot_config/zsh/keybinds.zsh diff --git a/dot_config/zsh/keybinds.zsh b/dot_config/zsh/keybinds.zsh new file mode 100644 index 0000000..6e02cf2 --- /dev/null +++ b/dot_config/zsh/keybinds.zsh @@ -0,0 +1,3 @@ +run_ranger () { echo; ranger < $TTY; zle redisplay } +zle -N run_ranger +bindkey '^f' run_ranger diff --git a/dot_zshrc b/dot_zshrc index c3646ae..c94b804 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -44,9 +44,7 @@ z4h source -c $HOME/.config/zsh/aliases.zsh z4h source -c $HOME/.config/local/aliases.zsh # key bindings -run_ranger () { echo; ranger < $TTY; zle redisplay } -zle -N run_ranger -bindkey '^f' run_ranger +z4h source -c $HOME/.config/zsh/keybinds.zsh # ssh stuff z4h source -c $HOME/.config/zsh/sshagent.zsh