1. Mario Fuest
  2. dotfiles

Source

dotfiles / .bash_aliases

# ~/.bash_alias: Some alias definitions

# color support
eval "`dircolors -b`"
alias ls='ls --color=auto'
alias grep="grep --color=auto"
alias dir='dir -h --color=auto'

# ls aliases
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias latest='ls -t | head -n 1'

# That saves nerves
alias mv='mv -i'
alias rm='rm -i'
alias cp='cp -i'

# sys
alias ..='cd ..'
alias ...='cd ../..'
alias ..2='cd ../..'
alias ..3='cd ../../..'
alias ..4='cd ../../../..'
alias du='du -h'
alias so='source'
alias ping='ping -c 3'
alias myip="curl -s http://www.whatismyip.de | grep -o '\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}'"
alias ud="sudo lsof | grep 'DEL.*lib' | cut -f 1 -d ' ' | sort -u"
alias upd="sudo pacman -Su && ud"

# You got me, I use vim:
alias q!='exit'
alias :q!='exit'
alias :e='$EDITOR'

# files
alias mirrorlist="sudo $EDITOR /etc/pacman.d/mirrorlist"
alias fstab="sudo $EDITOR /etc/fstab"
alias rc.conf="sudo $EDITOR /etc/rc.conf"
alias xorg.conf="sudo $EDITOR /etc/X11/xorg.conf"
alias pacman.conf="sudo $EDITOR /etc/pacman.conf"
alias brc="$EDITOR ~/.bashrc; source ~/.bashrc"
alias arc="$EDITOR ~/.alias; source ~/.bashrc"
alias xrc="$EDITOR ~/.xinitrc"
alias vrc="$EDITOR ~/.vimrc"
alias lua.xml="$EDITOR ~/.config/awesome/rc.lua"
alias mpd.conf="$EDITOR ~/.mpd/mpd.conf"

# audio
alias play="mpc play"
alias pause="mpc toggle"
alias stop="mpc stop"
alias next="mpc next"
alias prev="mpc prev"
alias nc="ncmpcpp"

# misc aliases
alias go='javaws http://files.gokgs.com/javaBin/cgoban.jnlp'
alias i='ipython'
alias b='bpython'
alias clean='find -regextype posix-extended -regex "*\.(pyc|orig)" -exec rm {} \;'
alias lodgeit='python2 ~/dev/Python/lodgeit.py'
alias braid='~/.braid/braid -windowed -height 768 -width 1024'