Many of these were poached from the Arch wiki a few years ago. The exact page seems to have moved, and this gist with recommended aliases is all that I could find today. I believe static and static2 were from the Arch subreddit, but I can’t find those either. If you know the original author, please let me know; I’d be happy to add the source to this post.


move_to_trash () {
    echo "NOTE: moving file(s) to ~/.local/share/Trash/files"
    mv "$@" ~/.local/share/Trash/files
}
alias rm='move_to_trash'

alias cd..='cd ..'
alias ':q'='exit'
alias ':wq'='exit'

alias ls='ls --color=auto'
alias grep='grep --color=auto'

alias history='history -Ei'
alias histsearch='history | grep'

alias temp='tlp-stat -t'
alias scrot='scrot /home/user/Pictures/Screenshots/%Y-%m-%d-%T-screenshot.png'
alias matlab-cli='matlab -nodesktop -nojvm -nosplash -nodisplay'
alias sprunge="curl -F 'sprunge=<-' http://sprunge.us"
alias static='P=( " " β–ˆ β–‘ β–’ β–“ );while :;do printf "\e[$[RANDOM%LINES+1];$[RANDOM%COLUMNS+1]f${P[$RANDOM%5]}";done|lolcat' 
alias static2='P=( β–ˆ β–‘ β–’ β–“ );while :;do printf "\e[$[RANDOM%LINES+1];$[RANDOM%COLUMNS+1]f${P[$RANDOM%5]}";done|lolcat' 
alias kusc='screen -dm cvlc http://128.mp3.kusc.live'

alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'

# ls
alias l='ls'
alias ll='ls -l'
alias la='ls -a'
alias lx='ls -X'
alias xl='sl -F'
alias lr='ls -R' # recursive ls

# copy and paste
alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'

# copy en dash to clipboard
alias en-dash='echo -n "–" | pbcopy && echo "Copied – to clipboard"'

# taskwarrior
alias t='task'
alias ta='task add'
alias td='task done'
alias tm='task modify'
alias te='task edit'
alias ts='task start'
alias ti='task information'
alias ct='clear; task next urgency.over:0.08'

# timewarrior
alias tw='timew'

# git
alias g='git status'
alias gc='git commit'
alias gca='git commit -a'
alias gcm='git commit -m'
alias gcam='git commit -a -m'
alias ga='git add'
alias ga.='git add .'
alias gp='git push'
alias gs='git status'
alias gd='git diff'
alias gl='git log'

# mercurial
alias hgc='hg commit -m'
alias hga='hg add'
alias hgar='hg addremove'
alias hgcm='hg commit -m'
alias hgp='hg push'
alias hgst='hg status'
alias hgs='hg st --pager false'
alias hgl='hg log'

# dirstack
alias d='dirs -v | head -10'
alias 1='cd -'
alias 2='cd -2'
alias 3='cd -3'
alias 4='cd -4'
alias 5='cd -5'
alias 6='cd -6'
alias 7='cd -7'
alias 8='cd -8'
alias 9='cd -9'

alias today='vim ~/Documents/Writing/"$(date -Idate).md"'