1. Mario Fuest
  2. dotfiles

Source

dotfiles / .aliases

# ~/.aliases: 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 -lh'
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 df='df -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 && u=`ud` && if [ -n "$u" ]; then echo "Might need to be restarted:" && echo "$u" | sed '\''s/^/ * /g'\''; fi'
alias s2ram='sudo s2ram --force'
alias sshagent='eval `ssh-agent` && ssh-add ~/.ssh/id_rsa'

# 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 ~/.aliases && source ~/.bashrc"
alias xrc="$EDITOR ~/.xinitrc"
alias vrc="$EDITOR ~/.vimrc"
alias mrc="$EDITOR ~/.muttrc"
alias dotrc="$EDITOR ~/.bin/setdotfiles"
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|\~|\.swp)$" -exec rm {} \;'
alias lodgeit='python2 ~/.bin/lodgeit.py'
alias braid='~/.braid/braid -windowed -height 768 -width 1024'