Skip to content

Instantly share code, notes, and snippets.

@ryanlid
Last active June 30, 2019 06:11
Show Gist options
  • Save ryanlid/f0251b3be95b7d0c51c26d13fc52986b to your computer and use it in GitHub Desktop.
Save ryanlid/f0251b3be95b7d0c51c26d13fc52986b to your computer and use it in GitHub Desktop.
~/.bashrc ~/.bash_profile
# ~/.bash_profile
export PATH=/usr/local/bin:/usr/local/bin:/usr/local/sbin:~/bin:/usr/local/bin:/usr/local/sbin:~/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/sbin:/usr/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin
export JAVA_HOME=$(/usr/libexec/java_home)
# export ANDROID_HOME=/Users/ryan/Library/Android/sdk
export ANDROID_HOME=/Volumes/Extend/Library/Android/sdk
export PATH=$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles
export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node
export NVM_IOJS_ORG_MIRROR=https://npm.taobao.org/mirrors/iojs
# export PATH=$PATH:/Users/ryan/Library/Flutter/bin
export PATH=$PATH:/Volumes/Extend/Library/flutter/bin
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
export MONO_HOME=/Library/Frameworks/Mono.framework/Versions/Current/
export PATH=$PATH:$MONO_HOME/bin
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
export NVM_DIR="/Users/ryan/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
alias code="/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code"
alias yt='docker run --rm -u $(id -u):$(id -g) -v $PWD:/data vimagick/youtube-dl'
alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"
alias ydl="youtube-dl -v --proxy socks5://127.0.0.1:1080"
alias yt='docker run --rm -u $(id -u):$(id -g) -v $PWD:/data vimagick/youtube-dl'
alias rsdev="rsync -av --exclude=.git --exclude=Dropbox --exclude=Creative\ Cloud\ Files --exclude=Informal\ Art\ Portfolio --exclude=.idea --exclude=venv --exclude=node_modules --exclude=.sass-cache --exclude=.class --exclude=out --exclude=.DS_Store --exclude=.Trashes --exclude=.TemporaryItems --exclude=.cache --exclude=sass --exclude=flowboard.com --exclude=dist --exclude=.tmp --delete ~/Developer/ ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/Developer/"
alias ands="open -a /Applications/Android\ Studio.app"
# ~/.bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
alias drp='python ~/dropbox.py'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment