zsh abbreviations
This commit is contained in:
23
zsh/abbreviations.zsh
Normal file
23
zsh/abbreviations.zsh
Normal file
@ -0,0 +1,23 @@
|
||||
alias grep='grep --colour'
|
||||
abbr vim='nvim'
|
||||
abbr vimdiff='nvim -d'
|
||||
# abbr cat='bat'
|
||||
alias ls='exa'
|
||||
abbr mux='tmuxinator'
|
||||
alias tmux='tmux -2'
|
||||
|
||||
alias cp='cp -iv' # Preferred 'cp' implementation
|
||||
alias mv='mv -iv' # Preferred 'mv' implementation
|
||||
alias mkdir='mkdir -pv' # Preferred 'mkdir' implementation
|
||||
|
||||
# recursively delete .DS_Store files
|
||||
abbr ds_clean='find ./ -name ".DS_Store" -depth -exec rm {} \;'
|
||||
|
||||
swap_files () {
|
||||
tmp_name=$(TMPDIR=$(dirname -- "$1") mktemp) &&
|
||||
mv -f -- "$1" "$tmp_name" &&
|
||||
mv -f -- "$2" "$1" &&
|
||||
mv -f -- "$tmp_name" "$2"
|
||||
}
|
||||
|
||||
function zipdiff() { diff -W200 -y <(unzip -vql "$1" | sort -k8) <(unzip -vql "$2" | sort -k8); }
|
Reference in New Issue
Block a user