# general aliases ## Alias handling alias editalias='vim $HOME/.config/zsh/aliases.zsh' alias updatealias='exec zsh' ## https://www.atlassian.com/git/tutorials/dotfiles alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' ## Use flatpak vscodium alias codium="flatpak run com.vscodium.codium --no-sandbox " ## navigation alias ..='cd ..' alias ...='cd ../..' ## 'ls' to 'exa' 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 '''^\s*(#|$)'''" ## 'cat' to 'bat' alias cat='bat' ## use 'drill' instead of 'dig' to drop bind package alias dig='drill' ## TODO 'delta' instead of 'git diff' ## confirm before overwriting files 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 --human-readable' alias free='free --human' alias du='du --human-readable --max-depth 2' alias wget='wget --continue' ## color and condense ip output 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'