Skip to content

Instantly share code, notes, and snippets.

@Thiruppathi
Last active July 24, 2018 17:56
Show Gist options
  • Save Thiruppathi/bd64f4901c5381a8b83d7a8b57f5e085 to your computer and use it in GitHub Desktop.
Save Thiruppathi/bd64f4901c5381a8b83d7a8b57f5e085 to your computer and use it in GitHub Desktop.
.bash_profile
export JAVA_HOME=$(/usr/libexec/java_home)
export PATH=$PATH:/Users/thiru/npm/bin
export PATH=$PATH:/Users/thiru/apps/mongodb/bin
export PATH="$PATH:$HOME/.yarn/bin"
export GOPATH=$HOME/go
export PATH=/Users/thiru/apps/phantomjs-2.1.1-macosx/bin:$PATH
export NVM_DIR="/Users/thiru/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# Setting PATH for Python 3.5
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
export PATH
# Setting PATH for Python 3.6
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH
######## ALIAS ##########
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
alias snake-babu='python -m SimpleHTTPServer'
alias dracarys=sudo
alias utube='youtube-dl -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" --sub-lang en,en-gb'
alias show-public-ssh='pbcopy < ~/.ssh/id_rsa.pub'
alias cpu='top -o cpu'
alias sup='git standup -d' #git standup
#alias code='open $@ -a "Visual Studio Code"'
#alias code-insiders='open $@ -a "Visual Studio Code - Insiders"'
alias chrome='open $@ -a "Google Chrome"'
alias proxy-chrome='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --proxy-server=socks5://localhost:8888'
alias eslint='node_modules/eslint/bin/./eslint.js'
alias shortlog='git shortlog -sn --all --no-merges'
eval "$(thefuck --alias)"
alias my-node='nvm alias default 8.11.2'
# Drone-Drops
alias myrpc='testrpc --account="0xaa73b5c98e60d589e71ce7cff59c02f82e12c7ce676ee356da8e058a285ccd61,1000000000000000000000" --account="0x2ac7167d1ef34f87cb4b9081d36433ae62d9fbae66775dfc10c4c1c761274315,0" --account="0xaef00ab772e70aa785f0674973d4ad08335ecb02f7e683c275068694b5258bb1,50000000000000000000"'
alias drone='truffle compile && truffle migrate && npm run dev'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment