Skip to content

Instantly share code, notes, and snippets.

@wescleymatos
Created May 2, 2011 13:06
Show Gist options
  • Save wescleymatos/951585 to your computer and use it in GitHub Desktop.
Save wescleymatos/951585 to your computer and use it in GitHub Desktop.
Minhas alterações no .bashrc
#config rvm
[[ -s "/home/wescley/.rvm/scripts/rvm" ]] && source "/home/wescley/.rvm/scripts/rvm"
#config path java
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export PATH=/usr/lib/jvm/java-6-sun/bin:$PATH
#config path grails
export PATH=~/.grails/bin:$PATH
export GRAILS_HOME=~/.grails
#config path griffon
export PATH=~/.griffon/bin:$PATH
export GRIFFON_HOME=~/.griffon
#config path play
export PLAY_HOME=~/.play-1.2.4
export PATH=$PATH:$PLAY_HOME
#config colors
RED="[31m"
hg_branch() {
hg branch 2> /dev/null | \
awk '{ printf "\033[37m hg:\033[35m" $1 }'
hg bookmarks 2> /dev/null | \
awk '/\*/ { printf "\033[37m at \033[33m" $2 }'
}
export PS1='\[\033[33m\]\W \[\033[35m\]$(hg_branch) `git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/git:\\\\\1\ /`\n\[\033[37m\]$\[\033[00m\] '
@brennovich
Copy link

Já tentou o Oh! My ZSH? Recomendo!!!

@wescleymatos
Copy link
Author

Não, não o conhecia. Essas ai são minhas configurações do bashrc com os paths dos frameworks que usam a JVM pra rodar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment