2024-08-25 19:58:12 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
programs.fish = {
|
|
|
|
enable = true;
|
|
|
|
interactiveShellInit = ''
|
|
|
|
set fish_greeting # Disable greeting
|
|
|
|
fish_vi_key_bindings # Enable Vi mode
|
2024-08-26 13:08:32 +00:00
|
|
|
|
|
|
|
function fzf --wraps=fzf --description="Use fzf-tmux if in tmux session"
|
|
|
|
if set --query TMUX
|
|
|
|
fzf-tmux $argv
|
|
|
|
else
|
|
|
|
command fzf $argv
|
|
|
|
end
|
|
|
|
end
|
2024-08-25 19:58:12 +00:00
|
|
|
'';
|
|
|
|
shellAbbrs = { cd = "z"; ngc = "sudo nix-collect-garbage -d"; };
|
|
|
|
plugins = [ { name = "fzf"; src = pkgs.fishPlugins.fzf.src; } ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|