-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bashrc
72 lines (56 loc) · 1.61 KB
/
.bashrc
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
70
71
72
# .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` = "enigma" -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
# Hadoop breaks if this is set
unset CDPATH