refactor: f script
This commit is contained in:
parent
92e2e149bc
commit
e2b6699215
1 changed files with 5 additions and 6 deletions
|
@ -24,12 +24,11 @@ let
|
||||||
f = pkgs.writeFishApplication {
|
f = pkgs.writeFishApplication {
|
||||||
name = "f";
|
name = "f";
|
||||||
runtimeInputs = with pkgs; [ fzf bat ];
|
runtimeInputs = with pkgs; [ fzf bat ];
|
||||||
text = ''
|
text = /* fish */ ''
|
||||||
#!/usr/bin/env fish
|
fzf --query "$argv" \
|
||||||
fzf --query "$argv" --multi --bind "enter:become($EDITOR {+})" --preview "bat --color=always --style=header,grid --line-range :500 {+}"
|
--multi \
|
||||||
'';
|
--bind "enter:become($EDITOR {+})" \
|
||||||
completions = ''
|
--preview "bat --color=always --style=header,grid --line-range :500 {+}"
|
||||||
complete -c f
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue