3 ms·
My main aliases are: a more human-friendly ls and an alias of rm which attempts to detect mistakes: alias l='command ls -Av1h --color=always --time-style=l
by conaclos 3y ago
My main aliases are: a more human-friendly ls and an alias of rm which attempts to detect mistakes:
alias l='command ls -Av1h --color=always --time-style=long-iso --group-directories-first'
# -A: show all, including dotfiles, except . and ..
# -v: natural sort of number
# -1 (one): list (use -l for long version)
# -h: human-readable sizes
alias rm='command rm -Iv'
# -I: prompt once before removing more than three files or recursively
# -v: verbose
I redefine also $HISTFILE to ensure that every shell get its own temporary history:
HISTFILE="${XDG_RUNTIME_DIR:-/tmp}/shell-history-$$"