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