Last active
February 23, 2021 04:45
-
-
Save Nithanaroy/c3a5d219e68d20a75d66bf21c7a5eb51 to your computer and use it in GitHub Desktop.
A good bash profile for a full stack developer
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
# source ~/.bash_folder/colors | |
alias gg="git gui" | |
alias gka="gitk --all &" | |
alias gk="gitk &" | |
alias gcm="git checkout master" | |
alias gp="git pull --rebase" | |
alias grm="git rebase master" | |
alias grom="git fetch origin;git rebase origin/master" | |
alias gb="git branch" | |
alias gpush="upload.sh master" | |
alias ghis="git log ..HEAD" | |
# Setting PATH for Python 2.7 | |
# The orginal version is saved in .bash_profile.pysave | |
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}" | |
export PATH | |
export NVM_DIR="/Users/nitinp/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
export PROMPT_COMMAND='echo -ne "\033]0;$PWD\007"' | |
# PATH="/Applications/mongodb-osx-x86_64-3.2.9/bin:${PATH}" | |
export PATH="/Applications/mongodb-osx-x86_64-3.4.6/bin:$PATH" | |
export GITAWAREPROMPT=~/.bash/git-aware-prompt | |
source "${GITAWAREPROMPT}/main.sh" | |
export PS1="\W \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ " | |
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/" | |
export MAVEN_OPTS="-Xms256m -Xmx512m" | |
export PATH="/Users/nitinp/dev/apache-maven-3.3.9/bin:${PATH}" | |
# export PATH="/Applications/MAMP/Library/bin:${PATH}" #MYSQL | |
export PATH="/Users/nitinp/scala-2.11.8/bin:${PATH}" #Scala | |
export PATH="/Applications/vertica_vsql/:${PATH}" #Vertica Command Line | |
export PATH="/Users/nitinp/emsdk_portable:/Users/nitinp/emsdk_portable/clang/fastcomp/build_incoming_64/bin:/Users/nitinp/emsdk_portable/node/4.1.1_64bit/bin:/Users/nitinp/emsdk_portable/emscripten/incoming:${PATH}" # web assembly | |
export EM_CONFIG="/Users/nitinp/.emscripten" | |
export EMSCRIPTEN="/Users/nitinp/emsdk_portable/emscripten/incoming" | |
alias vpndns="scutil --dns | grep 'nameserver\[[0-9]*\]'" | |
# added by Anaconda2 4.3.1 installer. Adds Python 2.7 to the path | |
export PATH="/Users/nitinp/anaconda/bin:$PATH" | |
alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome" | |
alias chrome-canary="/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary" | |
alias chromium="/Applications/Chromium.app/Contents/MacOS/Chromium" | |
# added by Miniconda3 4.3.21 installer. Adds Python 3 to the path | |
# export PATH="/Applications/miniconda3/bin:$PATH" | |
export PATH="/usr/local/opt/qt/bin:$PATH" | |
export LDFLAGS="-L/usr/local/opt/qt/lib" | |
export CPPFLAGS="-I/usr/local/opt/qt/include" | |
export PKG_CONFIG_PATH="/usr/local/opt/qt/lib/pkgconfig" | |
export PATH="/usr/local/opt/qt@5.5/bin:$PATH" | |
export PATH="/Applications/:$PATH" | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
export NVM_DIR="/Users/nitinp/.nvm" | |
[ -s "/Users/nitinp/.nvm/nvm.sh" ] && . "/Users/nitinp/.nvm/nvm.sh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Download this https://github.com/jimeh/git-aware-prompt before