Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (29 sloc) 1.42 KB
KERNEL=`uname -s`
PS1='`a=$?;if [ $a -ne 0 ]; then echo -n -e "\[\e[01;32;41m\]{$a}"; fi`\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\W`B=$(git branch 2>/dev/null | sed -e "/^ /d" -e "s/* \(.*\)/\1/"); if [ "$B" != "" ]; then S="git"; elif [ -e .bzr ]; then S=bzr; elif [ -e .hg ]; then S="hg"; elif [ -e .svn ]; then S="svn"; else S=""; fi; if [ "$S" != "" ]; then if [ "$B" != "" ]; then M=$S:$B; else M=$S; fi; fi; [[ "$M" != "" ]] && echo -n -e "\[\e[33;40m\]($M)\[\033[01;32m\]\[\e[00m\]"`\[\033[01;34m\] $ \[\e[00m\]'
if [ $KERNEL == "Darwin" ]; then
export LS=gls
export SED=gsed
else
export LS=ls
export SED=sed
fi
alias ls="$LS --color=auto"
#alias dir="dir --color=auto"
#alias vdir="vdir --color=auto"
alias grep="grep --color=auto"
alias fgrep="fgrep --color=auto"
alias egrep="egrep --color=auto"
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias pycscope="find -name '*.py' > cscope.files && cscope -R"
alias gendocandopen="epydoc --config epydoc.config && xdg-open apidocs/index.html"
alias ut="workon utcom && cdvirtualenv && cd utcom"
# ruby
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
export PATH=$HOME/.local/bin:$HOME/Sources/tools/bin:$HOME/Sources/tools/builder:$PATH
export DEBEMAIL="tualatrix@gmail.com"
export DEBFULLNAME="Tualatrix Chou"
export UTCOM_USER="tualatrix"
export UTCOM_HOST="ubuntu-tweak.com:24"