Skip to content

Instantly share code, notes, and snippets.

@nevill
Created July 15, 2017 13:41
Show Gist options
  • Save nevill/7d6e2df4d2e4c71be29c24833aed5955 to your computer and use it in GitHub Desktop.
Save nevill/7d6e2df4d2e4c71be29c24833aed5955 to your computer and use it in GitHub Desktop.
PS1='\[\e[1;34m\]\u@\h \W \[\e[0;32m\]\$\[\e[0;39m\] '
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
PS1='\[\e[1;34m\]\u@\h \W\[\e[0;36m\]$(__git_ps1 "(%s)") \[\e[0;32m\]\$\[\e[0;39m\] '
# PS1='\u@\h \W$(__git_ps1 " (%s)")\$ '
GIT_PS1_SHOWDIRTYSTATE=true
fi
# bash setting
export LANG="en_US.UTF-8" LC_CTYPE="en_US.UTF-8"
CLICOLOR=true
export EDITOR=emacs
export SVN_EDITOR=emacs
alias emacs='emacs -nw'
#alias ec='emacsclient -c'
# C programming
#c_libs="-lm"
#c_flags="-g -Wall -O3"
#alias go_c="clang -std=c99 -xc '-' $c_libs $c_flags"
# golang
export GOPATH="$HOME/gocode"
PATH="$GOPATH/bin:$PATH"
# jvm lang
JAVA_HOME=`/usr/libexec/java_home`
SCALA_HOME=/usr/local/opt/scala
GROOVY_HOME=/usr/local/opt/groovy/libexec
export PATH CLICOLOR DOCKER_HOST JAVA_HOME SCALA_HOME GROOVY_HOME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment