Created
October 18, 2017 22:35
-
-
Save GSuaki/746fab07324d7a438477ec8f698bcd05 to your computer and use it in GitHub Desktop.
This file contains 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
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
function proml { | |
local BLUE="\[\033[0;34m\]" | |
local RED="\[\033[0;31m\]" | |
local LIGHT_RED="\[\033[1;31m\]" | |
local GREEN="\[\033[0;32m\]" | |
local LIGHT_GREEN="\[\033[1;32m\]" | |
local WHITE="\[\033[1;37m\]" | |
local LIGHT_GRAY="\[\033[0;37m\]" | |
case $TERM in | |
xterm*) | |
TITLEBAR='\[\033]0;\u@\h:\w\007\]' | |
;; | |
*) | |
TITLEBAR="" | |
;; | |
esac | |
PS1="${TITLEBAR}$GREEN\u@\h:\w$RED\$(parse_git_branch)$LIGHT_GRAY\$ " | |
PS2='> ' | |
PS4='+ ' | |
} | |
proml | |
goto_projects() { | |
cd "/Users/GSuaki/Workspace/$1" | |
} | |
#export JAVA_HOME='/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home' | |
export JAVA_HOME='/Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home' | |
export M2_HOME=/Users/GSuaki/Workspace/apache-maven-3.2.3 | |
export PATH=$PATH:$M2_HOME/bin | |
### Composer | |
export COMPOSER_HOME=~/.composer/vendor | |
export PATH="~/.composer/vendor/bin:$PATH" | |
### MAMP | |
export PATH=/Applications/MAMP/bin/php/php5.6.2/bin:$PATH | |
### Added by the Heroku Toolbelt | |
export PATH="/usr/local/heroku/bin:$PATH" | |
export PATH="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome:$PATH" | |
export PATH="./node_modules/.bin:$PATH" | |
### Docker | |
export DOCKER_HOST=tcp://192.168.59.103:2376 | |
export DOCKER_CERT_PATH=/Users/GSuaki/.boot2docker/certs/boot2docker-vm | |
export DOCKER_TLS_VERIFY=1 | |
### Alias to ZendTools | |
alias zf=/Library/ZendFramework-1/bin/zf.sh | |
### Alias to sublime | |
alias sb='open -a "Sublime Text"' | |
alias at='open -a "Atom"' | |
alias vsc='open -a "Visual Studio Code"' | |
alias clean_project='mvn eclipse:clean && mvn eclipse:eclipse -U' | |
alias run_gulp='gulp clean && gulp dev' | |
alias vsc_bash='vsc ~/.bash_profile' | |
# alias phantonjs='/usr/local/lib/node_modules/phantomjs/lib/phantom/bin/phantomjs' | |
## | |
# Your previous /Users/GSuaki/.bash_profile file was backed up as /Users/GSuaki/.bash_profile.macports-saved_2015-10-01_at_10:32:31 | |
## | |
# MacPorts Installer addition on 2015-10-01_at_10:32:31: 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. | |
#RabbitMQ Path | |
export PATH=$PATH:/Users/GSuaki/Workspace/rabbitmq_server-3.5.6/sbin | |
#ImageMagick | |
export MAGICK_HOME="/usr/local/Cellar/imagemagick/6.9.1-10" | |
export PATH="$MAGICK_HOME/bin:$PATH" | |
export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib/" | |
export IM4JAVA_TOOLPATH="$MAGICK_HOME" | |
# export NVM_DIR="/Users/GSuaki/.nvm" | |
# [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
# $(boot2docker shellinit) | |
export PATH=$PATH:/usr/local/Cellar/elixir/1.4.2/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment