Tools, binding for fzf cd
This commit is contained in:
parent
bde0ce2e51
commit
5632cf75f5
2 changed files with 85 additions and 78 deletions
|
@ -14,7 +14,7 @@ function fish_greeting
|
|||
end
|
||||
|
||||
function preprocess_pwd
|
||||
test (pwd) = / && echo "/" && return 1
|
||||
test (pwd) = / && echo / && return 1
|
||||
test (pwd) = $NICE_HOME && echo "~" && return 0
|
||||
pwd \
|
||||
| cut -c2- \
|
||||
|
@ -121,8 +121,10 @@ function fish_prompt
|
|||
_user_prompt
|
||||
end
|
||||
|
||||
function fish_mode_prompt; end
|
||||
function fish_right_prompt; end
|
||||
function fish_mode_prompt
|
||||
end
|
||||
function fish_right_prompt
|
||||
end
|
||||
|
||||
# key bindings
|
||||
fish_vi_key_bindings
|
||||
|
@ -146,6 +148,10 @@ if has_command skim
|
|||
bind -M insert \cg skim-cd-widget
|
||||
end
|
||||
|
||||
if has_command fzf
|
||||
bind -M insert \cg fzf-cd-widget
|
||||
end
|
||||
|
||||
bind -M insert \cp up-or-search
|
||||
bind -M insert \cn down-or-search
|
||||
bind -M insert \ce end-of-line
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
kubectl
|
||||
stern
|
||||
libresprite
|
||||
logseq
|
||||
audacity
|
||||
wol
|
||||
shellcheck
|
||||
|
|
Loading…
Reference in a new issue