Last active
January 24, 2021 19:18
-
-
Save tangoabcdelta/b7c2a2a679dd62f4a77e0b52ef7cbc25 to your computer and use it in GitHub Desktop.
sample `.bash_profile` (originally) 2015 edition, contains some snippets that will qualify as still-relevant-in-2021
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
export PATH=/usr/local/bin:$PATH | |
export PATH=/usr/bin:$PATH | |
export PATH=/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin:$PATH | |
export PATH=/Applications/Sublime\ Text.app/Contents/SharedSupport/bin:$PATH | |
export PATH=$HOME/mongodb/bin:$PATH | |
export PATH=$HOMEredis/src:$PATH | |
export PATH=$HOME/apache-tomcat-8.0.36/bin:$PATH | |
export PATH=$HOME/apache-maven-3.3.9/bin:$PATH | |
# if you are using nvm, you will have to | |
# set this path each time you change your node version | |
export PATH=$HOME/.nvm/versions/node/v15.0.1/bin/node:$PATH | |
# when you defy npm and install lerna using yarn | |
export PATH=$HOME/.config/yarn/global/node_modules/.bin/lerna:$PATH | |
export PATH=$HOME/.yarn/bin:$PATH | |
# mysql | |
export PATH=/usr/local/mysql/bin:$PATH | |
# chromium - depot_tools | |
export PATH=$HOME/Projects/depot_tools:$PATH | |
# enabling gitk | |
export PATH=/usr/local/git/bin:$PATH | |
export PATH=/Applications/sqlite-tools-osx-x86-3140200:$PATH | |
export M2_HOME=$HOME/apache-maven-3.3.9 | |
export M2=$HOME/apache-maven-3.3.9/bin | |
export MAVEN_OPTS="-Xmx1048m -Xms256m -XX:MaxPermSize=312M" | |
# export JAVA_HOME=/usr/ | |
# export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre | |
# From Arushi | |
export JAVA_HOME=$(/usr/libexec/java_home) | |
# echo $(/usr/libexec/java_home) | |
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home | |
# The next line updates PATH for the Google Cloud SDK. | |
if [ -f $HOME/Downloads/google-cloud-sdk/path.bash.inc ]; then | |
source '$HOME/Downloads/google-cloud-sdk/path.bash.inc' | |
fi | |
# The next line enables shell command completion for gcloud. | |
if [ -f $HOME/Downloads/google-cloud-sdk/completion.bash.inc ]; then | |
source '$HOME/Downloads/google-cloud-sdk/completion.bash.inc' | |
fi | |
# PATH for the Google Cloud SDK (manual) | |
export PATH=$HOME/Downloads/google-cloud-sdk/bin/:$PATH | |
# example | |
alias lh='ls -lah' | |
# npm caching | |
alias npmi='sudo npm install --cache-min Infinity' | |
alias npmis='sudo npm install --save --cache-min Infinity' | |
# execute this to reload | |
# source ~/.bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment