sh.nix
1 { config, lib, pkgs, ... }: 2 3 let 4 # Add aliases here 5 aliasSet = { 6 ll = "ls -l"; 7 ".." = "cd .."; 8 vi = "nvim"; 9 neovim = "nvim"; 10 }; 11 12 in { 13 # Bash 14 programs.bash = { 15 enable = true; 16 shellAliases = aliasSet; 17 }; 18 19 # Fish 20 programs.fish = { 21 enable = true; 22 shellAliases = aliasSet; 23 shellInit = "function fish_greeting; end; fastfetch"; 24 }; 25 26 }