Switch fish to batman theme #fishfile
This commit is contained in:
@ -1,3 +0,0 @@
|
||||
# support oldschool autojump user
|
||||
alias j z
|
||||
alias jj zz
|
||||
@ -5,9 +5,10 @@ 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
|
||||
set -l _vars (set | command grep -E "^FZF.*\$" | command awk '{print $1;}')
|
||||
for var in $_vars
|
||||
echo $var
|
||||
eval (set -e $var)
|
||||
end
|
||||
# disabled until we figure out a sensible way to ensure user overrides
|
||||
# are not erased
|
||||
# set -l _vars (set | command grep -E "^FZF.*\$" | command awk '{print $1;}')
|
||||
# for var in $_vars
|
||||
# eval (set -e $var)
|
||||
# end
|
||||
end
|
||||
|
||||
@ -34,11 +34,16 @@ end
|
||||
|
||||
if set -q FZF_COMPLETE
|
||||
bind \t '__fzf_complete'
|
||||
if bind -M insert >/dev/null 2>/dev/null
|
||||
bind -M insert \t '__fzf_complete'
|
||||
end
|
||||
end
|
||||
|
||||
function fzf_key_bindings_uninstall -e fzf_key_bindings_uninstall
|
||||
set -l _bindings (bind -a | sed -En "s/(')?__fzf.*\$//p" | sed 's/bind/bind -e/')
|
||||
for binding in $_bindings
|
||||
eval $binding
|
||||
end
|
||||
# disabled until we figure out a sensible way to ensure user overrides
|
||||
# are not erased
|
||||
# set -l _bindings (bind -a | sed -En "s/(')?__fzf.*\$//p" | sed 's/bind/bind -e/')
|
||||
# for binding in $_bindings
|
||||
# eval $binding
|
||||
# end
|
||||
end
|
||||
|
||||
@ -1,44 +0,0 @@
|
||||
if test -z "$Z_DATA"
|
||||
if test -z "$XDG_DATA_HOME"
|
||||
set -U Z_DATA_DIR "$HOME/.local/share/z"
|
||||
else
|
||||
set -U Z_DATA_DIR "$XDG_DATA_HOME/z"
|
||||
end
|
||||
set -U Z_DATA "$Z_DATA_DIR/data"
|
||||
end
|
||||
|
||||
if test ! -e "$Z_DATA"
|
||||
if test ! -e "$Z_DATA_DIR"
|
||||
mkdir -p -m 700 "$Z_DATA_DIR"
|
||||
end
|
||||
touch "$Z_DATA"
|
||||
end
|
||||
|
||||
if test -z "$Z_CMD"
|
||||
set -U Z_CMD "z"
|
||||
end
|
||||
|
||||
set -U ZO_CMD "$Z_CMD"o
|
||||
|
||||
if test ! -z $Z_CMD
|
||||
function $Z_CMD -d "jump around"
|
||||
__z $argv
|
||||
end
|
||||
end
|
||||
|
||||
if test ! -z $ZO_CMD
|
||||
function $ZO_CMD -d "open target dir"
|
||||
__z -d $argv
|
||||
end
|
||||
end
|
||||
|
||||
if not set -q Z_EXCLUDE
|
||||
set -U Z_EXCLUDE $HOME
|
||||
end
|
||||
|
||||
# Setup completions once first
|
||||
__z_complete
|
||||
|
||||
function __z_on_variable_pwd --on-variable PWD
|
||||
__z_add
|
||||
end
|
||||
Reference in New Issue
Block a user