Skyler Grey | 2205a2d | 2022-06-04 11:27:55 +0100 | [diff] [blame] | 1 | { pkgs, ... }: { |
| 2 | home.packages = [ |
| 3 | pkgs.exa |
| 4 | ]; |
| 5 | |
Skyler Grey | 920050d | 2022-06-04 14:51:38 +0100 | [diff] [blame] | 6 | programs.zsh.initExtra = '' |
Skyler Grey | 9337254 | 2022-07-30 23:15:11 +0100 | [diff] [blame] | 7 | function ls { |
| 8 | if [ -t 1 ] ; then |
| 9 | ${pkgs.exa}/bin/exa --icons -lghF --git --group-directories-first --color always "$@" | less --quit-if-one-screen |
| 10 | else |
| 11 | ${pkgs.coreutils}/bin/ls "$@" |
| 12 | fi |
Skyler Grey | 920050d | 2022-06-04 14:51:38 +0100 | [diff] [blame] | 13 | } |
| 14 | ''; |
Skyler Grey | f7a2ac4 | 2022-06-04 16:53:25 +0100 | [diff] [blame] | 15 | |
| 16 | home.shellAliases = { |
| 17 | ls = "ls"; # Unset the default ls alias |
| 18 | }; |
Skyler Grey | 2205a2d | 2022-06-04 11:27:55 +0100 | [diff] [blame] | 19 | } |