diff --git a/users/mat-hm-laptop.nix b/users/mat-hm-laptop.nix index 9a14aeb..eb0249f 100644 --- a/users/mat-hm-laptop.nix +++ b/users/mat-hm-laptop.nix @@ -20,7 +20,6 @@ in { httpie imagemagick jq - pijul procs unrar # graphical applications diff --git a/users/mat-hm.nix b/users/mat-hm.nix index d7728ca..92351d2 100644 --- a/users/mat-hm.nix +++ b/users/mat-hm.nix @@ -32,7 +32,33 @@ in { broot.enable = true; command-not-found.enable = true; direnv.enable = true; - fish.enable = true; + + fish = { + enable = true; + interactiveShellInit = '' + echo 'ヽ(´ᗜ`)ノ welcome ヽ(´ᗜ`)ノ' + if not functions -q fisher + set -q XDG_CONFIG_HOME; or set XDG_CONFIG_HOME ~/.config + curl https://git.io/fisher --create-dirs -sLo $XDG_CONFIG_HOME/fish/functions/fisher.fish + fish -c fisher + end + fish_vi_key_bindings + set VIRTUAL_ENV_DISABLE_PROMPT true + + alias cat=bat + alias br=broot + alias tree=br + alias ack=rg + alias ag=rg + alias grep=rg + + alias sys="sudo systemctl" + + alias rebuild="sudo nixos-rebuild switch" + alias rebuildd="sudo nixos-rebuild switch; and systemctl restart display-manager" + alias upgrade="sudo rm -rf /root/.cache/nix/tarballs; and sudo nix-channel --update; and sudo nixos-rebuild switch --upgrade" + ''; + }; git = { enable = true;