diff --git a/src/servers/shell-skel/zshrc b/src/servers/shell-skel/zshrc index eb6efb5b..c057f5a5 100644 --- a/src/servers/shell-skel/zshrc +++ b/src/servers/shell-skel/zshrc @@ -72,20 +72,49 @@ elif command -v vim >/dev/null 2>&1; then fi # ── Aliases ── +# +# The same set the owner's machine gets, so a shell here and a shell there behave +# alike. `n`, `vim`, EDITOR and friends are NOT repeated — the Editor block above +# already sets them, and only when nvim is actually installed. +# +# The eza family keeps its `else` branch rather than only being guarded: these +# replace `ls`, and a member whose machine has no eza should still get a coloured +# listing rather than the bare one. Every other optional tool is guarded, per the +# note at the top of this file — nothing here is required beyond zsh itself. if command -v eza >/dev/null 2>&1; then - alias ls='eza --group-directories-first' - alias ll='eza -l --group-directories-first --git' - alias la='eza -la --group-directories-first --git' - alias lt='eza --tree --level=2' + alias ls='eza --icons' + alias la='eza --icons -la' + alias ll='eza --icons -l' + alias lll='eza --icons -lA' + alias lh='eza --icons -lhA' + alias ltr='eza --icons -ltr' + alias l='eza --icons -la' + alias lt='eza --icons --tree --level=2' else alias ls='ls --color=auto --group-directories-first' - alias ll='ls -lh' alias la='ls -lah' + alias ll='ls -lh' + alias lll='ls -lAh' + alias lh='ls -lAh' + alias ltr='ls -ltrh' + alias l='ls -lah' fi + alias grep='grep --color=auto' +alias less='less -R' +alias diff='diff --color=auto' +alias cp='cp -iv' +alias mv='mv -iv' +alias rm='rm -i' +alias mkdir='mkdir -p' +alias which='which -a' +alias history='fc -l 1' + alias ..='cd ..' alias ...='cd ../..' alias sz='source "$HOME/.zshrc"' +alias httpserver='python3 -m http.server 8888' +command -v lazydocker >/dev/null 2>&1 && alias ld='lazydocker' command -v duf >/dev/null 2>&1 && alias duf='duf --only local' command -v lazygit >/dev/null 2>&1 && alias lg='lazygit'