Switch fasd distro #fishshell
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
function __fasd_run -e fish_preexec -d "fasd takes record of the directories changed into"
|
||||
if test $argv[1] != "exit"
|
||||
command fasd --proc (command fasd --sanitize "$argv") > "/dev/null" 2>&1 &
|
||||
end
|
||||
function __fasd_run -e fish_postexec -d "fasd takes record of the directories changed into"
|
||||
set -lx RETVAL $status
|
||||
if test $RETVAL -eq 0 # if there was no error
|
||||
command fasd --proc (command fasd --sanitize (eval echo "$argv") | tr -s " " \n) > "/dev/null" 2>&1 &
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@ -1 +0,0 @@
|
||||
fisher copy-user-key-bindings
|
||||
@ -5,5 +5,9 @@ set -q FZF_PREVIEW_FILE_CMD; or set -U FZF_PREVIEW_FILE_CMD "head -n 10"
|
||||
set -q FZF_PREVIEW_DIR_CMD; or set -U FZF_PREVIEW_DIR_CMD "ls"
|
||||
|
||||
function fzf_uninstall -e fzf_uninstall
|
||||
# Erase env vars and __fzf functions here.
|
||||
set -l _vars (set | command grep -E "^FZF.*\$" | command awk '{print $1;}')
|
||||
for var in $_vars
|
||||
echo $var
|
||||
eval (set -e $var)
|
||||
end
|
||||
end
|
||||
|
||||
@ -37,5 +37,8 @@ if set -q FZF_COMPLETE
|
||||
end
|
||||
|
||||
function fzf_key_bindings_uninstall -e fzf_key_bindings_uninstall
|
||||
# Erase key bindings here.
|
||||
set -l _bindings (bind -a | sed -En "s/(')?__fzf.*\$//p" | sed 's/bind/bind -e/')
|
||||
for binding in $_bindings
|
||||
eval $binding
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user