Sha256: 88b6fe41ad70713ec8293a5c012b799f7c72684e0c11f8ba707b0193b2e35f30
Contents?: true
Size: 930 Bytes
Versions: 1
Compression:
Stored size: 930 Bytes
Contents
# common setting export PATH=\ ~/bin:\ ~/.gem/ruby/1.9.1/bin/:\ ~/.gem/ruby/1.8/bin/:\ $PATH #export GEM_HOME=$HOME/.gem/ruby/1.8 #export GEM_PATH=$GEM_HOME 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.1 | lib/source-tools/templates/t.profile.erb |