public
Description: Phil Hagelberg's personal dotfiles collection: the product of years of accumulated obsessive minor tweaks. Mostly Emacs Lisp.
Homepage: http://technomancy.us
Clone URL: git://github.com/technomancy/dotfiles.git
technomancy (author)
Fri Apr 24 09:55:36 -0700 2009
commit  63aac563d5f2417a7500942d2ac392c118d1d539
tree    5bda7b1bf523b004f625acbfb31d0ddffbd2808b
parent  fe05569c011d1c5ec27cc6ef0319594d701b3702
dotfiles / .bashrc
100644 69 lines (54 sloc) 1.603 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# .bashrc
 
# User specific aliases and functions
source ~/.profile
 
[ "$EMACS" == "t" ] || alias ls="ls --color"
 
export PAGER=less
 
alias emac="emacs -nw -q --no-site-file"
alias ri="ri -f ansi -T"
alias devlog="tail -F log/development.log"
 
alias ll="ls -l -h"
alias la="ls -a"
alias l="ls"
alias lla="ls -a -l"
alias grep="grep --color=auto"
alias grepp="ps aux | grep"
 
# package management
alias sapti="sudo apt-get install"
alias saptr="sudo apt-get remove"
alias saptu="sudo apt-get upgrade"
alias saptd="sudo apt-get update"
alias saptc="apt-cache search"
alias sapts="apt-cache show"
 
# gems
alias sagi="sudo gem install"
alias sagr="sudo gem uninstall"
alias sagd="sudo gem source -u"
alias sagc="gem search --remote"
 
# git
alias gst="git status"
alias gb="git branch --color"
alias gcm="git commit -a -v"
alias gco="git checkout"
 
alias xmlcurl="curl -H Accept:text/xml"
 
alias ml="ls ~/music"
 
complete -C ~/bin/rake-complete.rb -o default rake
 
export EDITOR=emacsclient
 
# prompt coloring
# see http://attachr.com/9288 for full-fledged craziness
if [ `/usr/bin/whoami` = "root" ] ; then
  # root has a red prompt
  export PS1="\[\033[0;31m\]\u@\h \w \$ \[\033[0m\]"
elif [ `hostname` = "puyo" -o `hostname` = "pdp10" -o `hostname` = "dynabook" ] ; then
  # the hosts I use on a daily basis have blue
  export PS1="\[\033[0;36m\]\u@\h \w \$ \[\033[0m\]"
else
  # purple by default
  export PS1="\[\033[0;35m\]\u@\h \w \$ \[\033[0m\]"
fi
 
# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi
 
if [ -f $HOME/.java_profile ]; then
    source $HOME/.java_profile
fi