Sha256: 0a32ce952fcf0fbc349afcd6b590fb53421d40bf429a02de5114f9e56e3ccc79
Contents?: true
Size: 865 Bytes
Versions: 1
Compression:
Stored size: 865 Bytes
Contents
# common setting export PATH=\ ~/bin:\ ~/.gem/ruby/1.9.1/bin/:\ ~/.gem/ruby/1.8/bin/:\ $PATH export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 export EDITOR=vim export DISPLAY=localhost:0.0 export TERM=xterm-color # bash specific function bash_prompt { git=`show_git_branch` where='\033[1;32m'`pwd | sed 's/.*\///g'`'\033[0m' if test $git; then # bash need echo -e to make color work echo -e $where' \033[1;36m'$git'\033[0m$ ' else echo -e `whoami`@`hostname -s` $where'$ ' fi } function show_git_dirty { # how queer in test we can't use `` to do sub if test "$(git status 2> /dev/null | tail -n1)" != 'nothing to commit (working directory clean)' 2> /dev/null; then echo '*' fi } function show_git_branch { git symbolic-ref HEAD 2> /dev/null | sed 's/refs\/heads\/\(.*\)/'`show_git_dirty`'\1/' } export PS1='`bash_prompt`'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
source-tools-0.6.0 | lib/source-tools/templates/t.profile.erb |