Added eza, a replacement for ls

This commit is contained in:
Tomas Rivera
2026-04-13 15:29:10 +02:00
parent d3e2199f61
commit 0b2b88d41b
4 changed files with 132 additions and 7 deletions
+15 -5
View File
@@ -15,15 +15,25 @@
command cat "$@"
fi
}
custom-eza() { # behaves differently if we just call it or if we pipe initContent
if [[ -t 1 ]]; then
eza -hlF -aa --color=always --hyperlink --group-directories-first --show-symlinks --icons=always --git --no-permissions "$@"
else
command eza "$@"
fi
}
eval "$(direnv hook zsh)"
fastfetch''\n'';
fastfetch''\n'';
shellAliases = {
".." = "z ..";
grep = "rg";
ll = "ls -alF";
la = "ls -A";
l = "ls -CF";
ls = "ls -hA -s --color";
ll = "custom-eza"; # if there is a special ls just use the big eza
la = "custom-eza";
l = "custom-eza";
eza = "custom-eza";
ls = "\\eza"; # ls -> normal ls. eza more info
tree = "\\eza -hlTF --color=always --hyperlink --group-directories-first --show-symlinks --icons=always --git --no-permissions";
cat = "custom-cat";
pomodoro = "custom-tomato";
librewolf = "kitty --class \"custom-librewolfprofiles\" --name \"Select LibreWolf profile\" --hold custom-librewolfprofiles";