From e40f70d16decdb9c7b5ff0f8882205cd8ff74d33 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Fri, 22 Sep 2023 00:41:57 +0200 Subject: [PATCH] shell: switch to fish --- roles/home/fish.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 roles/home/fish.nix 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 + ''; + }; +} +