if [ -x /usr/bin/dircolors ]; then alias ls='ls --color=auto' alias grep='grep --color=auto' fi # some more ls aliases alias ll='ls -l' alias la="ls -a" alias lS="ls -lSr" alias lm="ls -ltr $HOME/mail/ | tail" alias ..="cd .." alias install="apt-get install" alias m='MUTTJOBS=$(jobs | grep mutt) ; if [ -z "$MUTTJOBS" ] ; then echo "No mutt, starting new" ; mutt ; else JOBID=$(echo $MUTTJOBS | sed -e "s/\].*$//" | sed -e "s/^\[//" ) ; echo Using mutt job $JOBID ; fg %$JOBID; fi' alias s="sc slrn" alias irc="sc irc" alias ms="mutt -f =search" alias st="screen -dr talker" alias sd="screen -dr download" alias talker="screen -dr talker" alias eximtail="tail -f /var/log/exim4/mainlog" alias db="dropbox.py" alias trunc="truncate -s0" # Stuff for todo.txt alias waiting="t lf waiting" alias active="t ls active" alias today="t lsp A" alias week="t lsp A-B" # git shortcuts alias br="git checkout" alias brl="git branch" alias gg="git grep" alias st="git status" alias gd="git diff" if [ "$TERM" == "xterm-256color" ] ; then echo TERM is xterm-256color, assuming MacBook # Safety net for different locations of keys alias rm="rm -i" fi alias log='git log --color --graph --pretty=format:'\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit' alias coot="cd ~/src/cooter_umbrella/"