all repos — dotfiles @ ca6460079249e87c901ed23fe4c7e1bbea104360

my *nix dotfiles

programs/fish.nix (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
{ config
, pkgs
, ...
}:

{
  programs.fish = {
    enable = true;
    interactiveShellInit = ''
      set fish_greeting # Disable greeting
    '';
    functions = {
      fish_prompt = ''
        printf '\n\001\002▲\001\002 '
      '';
    };
    shellAbbrs = {
      gc = "git commit -v -S";
      gst = "git status --short";
      ga = "git add";
      gd = "git diff --minimal";
      gl = "git log --oneline --decorate --graph";
      k = "kubectl";
    };
    shellAliases = {
      n = "z";
      "..." = "cd ../..";
    };
  };
}