diff options
| -rw-r--r-- | home-manager/fish/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/home-manager/fish/default.nix b/home-manager/fish/default.nix index 2e88821..6bb6aaa 100644 --- a/home-manager/fish/default.nix +++ b/home-manager/fish/default.nix @@ -5,10 +5,11 @@ generateCompletions = true; interactiveShellInit = '' - set fish_greeting # Disable greeting + set fish_greeting # disable greeting complete -c nixos -f + # autocomplete for `nixos` command complete -c nixos \ -n "__fish_use_subcommand" \ -a "update" \ @@ -29,6 +30,7 @@ -a "clean" \ -d "Clean nix store" + # make `nixos config` autocomplete based on $HOME/.nix complete -c nixos \ -n "__fish_seen_subcommand_from config" \ -a "(__fish_nixos_config_files)" \ @@ -51,9 +53,7 @@ fetch = "nix run nixpkgs#pfetch"; }; - # shellInitLast = '' - # # atuin init fish | source - # ''; + shellInitLast = ''''; functions = { __fish_nixos_config_files = '' |
