From 3e4b04605e5923caec5b73e4953f904c040000f2 Mon Sep 17 00:00:00 2001 From: Rui Coelho Date: Thu, 6 Oct 2016 10:08:15 +0100 Subject: [PATCH] Add deer (ranger clone for zsh) external module support --- .gitmodules | 3 +++ modules/deer/external | 1 + modules/deer/init.zsh | 10 ++++++++++ runcoms/zpreztorc | 6 ++++++ 4 files changed, 20 insertions(+) create mode 160000 modules/deer/external create mode 100644 modules/deer/init.zsh diff --git a/.gitmodules b/.gitmodules index 518a2795..b6cc2483 100644 --- a/.gitmodules +++ b/.gitmodules @@ -19,3 +19,6 @@ [submodule "modules/autosuggestions/external"] path = modules/autosuggestions/external url = https://github.com/tarruda/zsh-autosuggestions +[submodule "modules/deer/external"] + path = modules/deer/external + url = https://github.com/Vifon/deer.git diff --git a/modules/deer/external b/modules/deer/external new file mode 160000 index 00000000..2668477e --- /dev/null +++ b/modules/deer/external @@ -0,0 +1 @@ +Subproject commit 2668477e04c6978ca2cdcb1651b17f119f752ce9 diff --git a/modules/deer/init.zsh b/modules/deer/init.zsh new file mode 100644 index 00000000..4fc7f9aa --- /dev/null +++ b/modules/deer/init.zsh @@ -0,0 +1,10 @@ +# +# Load Deer Module +# +fpath=("${0:h}/external" $fpath) + +autoload -U deer +zle -N deer +zstyle -s ':prezto:module:deer' key-bindings 'key_bindings' +bindkey "$key_bindings" deer +unset key_bindings diff --git a/runcoms/zpreztorc b/runcoms/zpreztorc index e93ac6bf..69697777 100644 --- a/runcoms/zpreztorc +++ b/runcoms/zpreztorc @@ -34,6 +34,12 @@ zstyle ':prezto:load' pmodule \ 'completion' \ 'prompt' +# +# Deer +# +# Set key bindings +zstyle ':prezto:module:deer' key-bindings '^k' + # # Autosuggestions #