diff --git a/roles/home/fish.nix b/roles/home/fish.nix new file mode 100644 index 0000000..fccfa77 --- /dev/null +++ b/roles/home/fish.nix @@ -0,0 +1,27 @@ +{ config, pkgs, lib, ... }: + +{ + home.packages = with pkgs; [ any-nix-shell fishPlugins.tide fishPlugins.bass ]; + + programs.fish = { + enable = true; + + shellAbbrs = { + "_" = "sudo"; + }; + + shellInit = '' + # avoid macOS updates to destroy nix +# if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then +# source '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' +# end + + any-nix-shell fish --info-right | source +# source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh + + # disable autosuggestions + set -g fish_autosuggestion_enabled 0 + ''; + }; +} +