summaryrefslogtreecommitdiff
path: root/common/fish.nix
blob: af2ca6fe8233c28d329a53d9dfbff37741075cb4 (plain)
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
#Zsh configuration (imported in ./hm.nix)

{ ... }:

{
  programs.fish = {
    enable = true;
    shellAliases = {
      ll = "ls -l";
      gs = "git status";
      nxrs = "sudo nixos-rebuild switch --flake .";
      nivm = "nvim";
      nimv = "nvim"; #wonder why these 2 exits
      neofetch = "fastfetch";
      ga = "git add";
      gc = "git commit";
      gr = "git restore";
      ndw = "sudo nmcli device wifi"; #Nah terminal is all you need for wifi and bt
      gti = "git"; #Typo final boss
    };
    shellInit = ''
      shuf -n 1 ~/.tips | cowsay 
			oh-my-posh init fish -c ~/.config/omp/catppuccin_mocha.json | source
    '';
  };

  home.file.".tips".source = ./tips;
}