15 11 / 2011
My new .profile
My new .profile
The previous post on .profile has errors cause the formatting ran.
#the prompt
#export PS1="\u@\h\w--\d--\t$"
alias gitbs="git branch | grep '^* ' | awk '{print \$2}'"
alias gitprompt="git status -s 2>/dev/null >&2 && echo \"(\`gitbs\`) \""
colorblue="\[\033[0;34m\]"
colorred="\[\033[0;31m\]"
endcolor="\[\033[m\]"
PS1="${colorblue}$PS1${colorred}\`gitprompt\`${colorblue}\d \t>${endcolor}"
#the path
PATH=$PATH:/Applications/XAMPP/xamppfiles/bin/
alias ki='open -a "Komodo Edit"'
#change default directory
cd -P Desktop/htdocs
#enable colors
export CLICOLOR=1
Permalink 6 notes