Add deer (ranger clone for zsh) external module support
This commit is contained in:
parent
719e8e8957
commit
0e98744cb8
4 changed files with 20 additions and 0 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -19,3 +19,6 @@
|
||||||
[submodule "modules/autosuggestions/external"]
|
[submodule "modules/autosuggestions/external"]
|
||||||
path = modules/autosuggestions/external
|
path = modules/autosuggestions/external
|
||||||
url = https://github.com/tarruda/zsh-autosuggestions
|
url = https://github.com/tarruda/zsh-autosuggestions
|
||||||
|
[submodule "modules/deer/external"]
|
||||||
|
path = modules/deer/external
|
||||||
|
url = https://github.com/Vifon/deer.git
|
||||||
|
|
1
modules/deer/external
Submodule
1
modules/deer/external
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 2668477e04c6978ca2cdcb1651b17f119f752ce9
|
10
modules/deer/init.zsh
Normal file
10
modules/deer/init.zsh
Normal file
|
@ -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
|
|
@ -34,6 +34,12 @@ zstyle ':prezto:load' pmodule \
|
||||||
'completion' \
|
'completion' \
|
||||||
'prompt'
|
'prompt'
|
||||||
|
|
||||||
|
#
|
||||||
|
# Deer
|
||||||
|
#
|
||||||
|
# Set key bindings
|
||||||
|
zstyle ':prezto:module:deer' key-bindings '^k'
|
||||||
|
|
||||||
#
|
#
|
||||||
# Autosuggestions
|
# Autosuggestions
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Reference in a new issue