[alias] cleanup: remove unused aliases + add useful ones

This commit is contained in:
David JULIEN 2022-11-04 19:02:20 +01:00
parent 8e74752fb6
commit 3c3ee82f26

View File

@ -1,25 +1,35 @@
# a file containing all my aliases # a file containing all my aliases
# sourced at launch # sourced at launch
alias cp='cp -v' # Verbosity
alias mv='mv -v' alias cp="cp -iv"
alias rm='rm -v' alias mv="mv -iv"
alias rsync='rsync --progress' alias rm="rm -vI"
alias grep='grep --color=auto' alias bc="bc -ql"
alias ls='ls --color=auto' alias mkd="mkdir -pv"
alias ll='ls -lh' alias yt-dlp="yt-dlp --embed-metadata -iv"
alias la='ls -lah' alias rsync="rsync --progress"
alias bulkrename='\ls | $EDITOR - -c ":%s/.*/mv -i & &/g"'
# Colors
alias diff="diff --color=auto"
alias grep="grep --color=auto"
alias ip="ip -color=auto"
alias ls="ls --color=auto"
# Handy stuff
alias abcde="abcde -c $XDG_CONFIG_HOME/abcde/config"
alias abook="abook --config $XDG_CONFIG_HOME/abook/abookrc --datafile $XDG_DATA_HOME/abook/addressbook"
alias backup='rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} /' alias backup='rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} /'
alias printenv='printenv | sort' alias dotfiles="/usr/bin/git --git-dir=$DOTFILES --work-tree=$HOME"
alias gu='git fetch upstream && git merge upstream/master'
alias unimatrix='unimatrix -a -f -s=95'
alias untar='tar -zxvf'
alias root@site='ssh root@davidjulien.xyz'
alias swytch@site='ssh swytch@davidjulien.xyz'
alias dotfiles='/usr/bin/git --git-dir=$DOTFILES --work-tree=$HOME'
alias abcde='abcde -c $XDG_CONFIG_HOME/abcde/config'
alias abook='abook --config $XDG_CONFIG_HOME/abook/abookrc --datafile "$XDG_DATA_HOME"/abook/addressbook'
alias pip-upgrade="pip freeze --user | cut -d'=' -f1 | xargs -n1 pip install -U"
alias wget="wget --hsts-file=$XDG_CACHE_HOME/wget-hsts"
alias irssi="irssi --config=$XDG_CONFIG_HOME/irssi/config --home=$XDG_DATA_HOME/irssi" alias irssi="irssi --config=$XDG_CONFIG_HOME/irssi/config --home=$XDG_DATA_HOME/irssi"
alias ll="ls -lh"
alias la="ls -lah"
alias pip-upgrade="pip freeze --user | cut -d'=' -f1 | xargs -n1 pip install -U"
alias podget="podget --dir_config $XDG_CONFIG_HOME/podget"
alias printenv="printenv | sort"
alias wget="wget --hsts-file=$XDG_CACHE_HOME/wget-hsts"
alias yta="yt-dlp -x -f ogg/6"
# Website
alias root@site="ssh root@davidjulien.xyz"
alias swytch@site="ssh swytch@davidjulien.xyz"