Last active
August 29, 2015 14:26
-
-
Save scarfunk/4fe93f7e41a35ec238ad to your computer and use it in GitHub Desktop.
My whole bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for folder color | |
export TERM="xterm-color" | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxCxDxBxegedabagacad | |
# maven | |
export M2_HOME=/usr/local/apache-maven-3.2.3 | |
export M2=$M2_HOME/bin | |
export PATH=$M2:$PATH | |
# java | |
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home | |
export PATH=$JAVA_HOME/bin:$PATH | |
# scala | |
export SCALA_HOME=/Library/scala-2.11.6 | |
export PATH=$SCALA_HOME/bin:$PATH | |
# vertx.temp | |
export VERTX_HOME='/Users/sukkyu/vert.x-2.1.5' | |
export PATH=$VERTX_HOME/bin:$PATH | |
export PATH=/usr/local:/usr/local/sbin:$PATH | |
# gradle | |
export GRADLE_HOME=/usr/local/gradle-2.4 | |
export GRADLE_OPTS="-Dfile.encoding=UTF-8 -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=256m" | |
export PATH=$GRADLE_HOME/bin:$PATH | |
# alias | |
alias ls="ls -FG" | |
alias h=history | |
# MacPorts Installer addition on 2012-06-27_at_18:46:27: adding an appropriate PATH variable for use with MacPorts. | |
export PATH=/opt/local/bin:/opt/local/sbin:$PATH | |
# Finished adapting your PATH environment variable for use with MacPorts. | |
#PS1='$PWD$ ' | |
# do lazygit 'commit message' | |
function lazygit() { | |
sudo git add . | |
sudo git commit -a -m "$1" | |
sudo git push | |
} | |
# for bash shell. | |
YELLOW="\[\033[0;33m\]" | |
NO_COLOR="\[\033[0m\]" | |
GREEN="\[\033[0;32m\]" | |
PS1="$GREEN\w$YELLOW\$(parse_git_branch)$NO_COLOR\$ " | |
function parse_git_branch () { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment