diff --git a/.config/oh-my-zsh/aliases.zsh b/.config/oh-my-zsh/aliases.zsh index 7d5e3bb..c061d2b 100644 --- a/.config/oh-my-zsh/aliases.zsh +++ b/.config/oh-my-zsh/aliases.zsh @@ -12,13 +12,14 @@ alias ..='cd ..' alias ...='cd ../..' ## 'ls' to 'exa' -alias ls='exa -l --color=always --group-directories-first --classify' -alias la='exa -al --color=always --group-directories-first --classify' -alias ll='exa -l --color=always --group-directories-first --classify' -alias l.='exa -ald --color=always --group-directories-first --classify .*' +alias ls='exa --long --color=always --group-directories-first --classify' +alias la='exa --all --long --color=always --group-directories-first --classify' +alias ll='exa --long --color=always --group-directories-first --classify' +alias l.='exa --all --list-dirs --long --color=always --group-directories-first --classify .*' ## 'grep' to 'rg' -> 'ripgrep' alias grep='rg' +alias nocomment="rg --invert-match '''^(#|$)'''" ## 'cat' to 'bat' alias cat='bat' @@ -26,18 +27,25 @@ alias cat='bat' ## TODO 'delta' instead of 'git diff' ## confirm before overwriting files -alias cp="cp -i" -alias mv='mv -i' -alias rm='rm -i' +alias cp='cp --interactive' +alias mv='mv --interactive' +alias ln='ln --interactive' +alias rm='rm --interactive=always --preserve-root' + +## safety nets for changing permissions on / +alias chown='chown --preserve-root' +alias chmod='chmod --preserve-root' +alias chgrp='chgrp --preserve-root' ## adding flags -alias df='df -h' -alias free='free -m' -alias du='du -h -d 2' +alias df='df --human-readable' +alias free='free --human' +alias du='du --human-readable --depth 2' +alias wget='wget --continue' ## color and condense ip output -alias ipa='ip -br -c addr show' -alias ipl='ip -br -c link show' +alias ipa='ip --brief --color addr show' +alias ipl='ip --brief --color link show' ## always spawn new window for firefox alias firefox='firefox --new-window'