commit 841bd73712646fc7131dc2aa5e614d78b84ddf3a parent 465f18d8a97e4cc284ac91d604bd9d5f604c9f15 Author: Chris Bracken <chris@bracken.jp> Date: Mon, 18 May 2026 13:19:34 +0900 zsh: clean up aliases Eliminate unuzed aliases and don't bother with eza; stock ls is better. Diffstat:
| M | .config/zsh/aliases | | | 29 | ++++++++++------------------- |
1 file changed, 10 insertions(+), 19 deletions(-)
diff --git a/.config/zsh/aliases b/.config/zsh/aliases @@ -1,34 +1,25 @@ # .aliases -# add colour -if [[ "$(uname)" == FreeBSD || "$(uname)" == Darwin ]]; then - alias ls='ls -FG' -elif [[ "$(uname)" == Linux ]]; then - alias ls='ls -F --color=auto' -fi +# grep: add colour. if [[ "$(uname)" == FreeBSD || "$(uname)" == Darwin || "$(uname)" == Linux ]]; then alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' fi -alias ag='ag --color-line-number "30;33" --color-path "30;32" --color-match "1;31"' -# ls/eza -if command -v eza &> /dev/null; then - alias l='eza -gl --time-style=long-iso --group-directories-first' - alias ll='eza -gla --time-style=long-iso --group-directories-first' -else - alias l='ls -l' - alias ll='ls -la' +# ls: add colour and file type hints. +if [[ "$(uname)" == FreeBSD || "$(uname)" == Darwin ]]; then + alias ls='ls -FG' +elif [[ "$(uname)" == Linux ]]; then + alias ls='ls -F --color=auto' fi +alias l='ls -l' +alias ll='ls -la' -# some useful aliases +# Recent history. alias h='fc -l' -alias j=jobs -alias m="$PAGER" -alias g='egrep -i' -# be paranoid +# Be paranoid. alias cp='cp -ip' alias mv='mv -i' alias rm='rm -i'