adapts fish functions
This commit is contained in:
parent
becb5a52d9
commit
d86fef9897
1 changed files with 14 additions and 14 deletions
|
|
@ -3,20 +3,11 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
functions = {
|
functions = {
|
||||||
|
dbui = ''
|
||||||
|
nvim +"DBUI"
|
||||||
|
'';
|
||||||
ff = ''
|
ff = ''
|
||||||
set rg_cmd "rg --column --line-number --no-heading --color=always --smart-case"
|
bash ${./ff.bash}
|
||||||
set initial_query (string join " " $argv)
|
|
||||||
|
|
||||||
fzf --ansi --disabled --query "$initial_query" \
|
|
||||||
--bind "start:reload:$rg_cmd {q}" \
|
|
||||||
--bind "change:reload:sleep 0.1; $rg_cmd {q} || true" \
|
|
||||||
--bind "alt-enter:unbind(change,alt-enter)+change-prompt(2. fzf> )+enable-search+clear-query" \
|
|
||||||
--color "hl:-1:underline,hl+:-1:underline:reverse" \
|
|
||||||
--prompt '1. ripgrep> ' \
|
|
||||||
--delimiter : \
|
|
||||||
--preview 'bat --color=always {1} --highlight-line {2}' \
|
|
||||||
--preview-window 'up,60%,border-bottom,+{2}+3/3,~3' \
|
|
||||||
--bind 'enter:become(nvim {1} +{2})'
|
|
||||||
'';
|
'';
|
||||||
envsource = ''
|
envsource = ''
|
||||||
for line in (cat $argv | grep -v '^#')
|
for line in (cat $argv | grep -v '^#')
|
||||||
|
|
@ -48,6 +39,16 @@
|
||||||
'';
|
'';
|
||||||
localip = "ifconfig | grep \"inet \" | grep -v 127.0.0.1 | awk '{print $2}' | head -n 1";
|
localip = "ifconfig | grep \"inet \" | grep -v 127.0.0.1 | awk '{print $2}' | head -n 1";
|
||||||
publicip = "curl -4 ifconfig.me";
|
publicip = "curl -4 ifconfig.me";
|
||||||
|
fzf = ''
|
||||||
|
set -Ux FZF_DEFAULT_OPTS "
|
||||||
|
--color=fg:#908caa,bg:#191724,hl:#ebbcba
|
||||||
|
--color=fg+:#e0def4,bg+:#26233a,hl+:#ebbcba
|
||||||
|
--color=border:#403d52,header:#31748f,gutter:#191724
|
||||||
|
--color=spinner:#f6c177,info:#9ccfd8
|
||||||
|
--color=pointer:#c4a7e7,marker:#eb6f92,prompt:#908caa"
|
||||||
|
|
||||||
|
command fzf
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
|
|
@ -74,7 +75,6 @@
|
||||||
lg = "lazygit";
|
lg = "lazygit";
|
||||||
g = "git";
|
g = "git";
|
||||||
frc = "source ~/.config/fish/**/*.fish";
|
frc = "source ~/.config/fish/**/*.fish";
|
||||||
t = "todo.sh";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue