Skip to content

Instantly share code, notes, and snippets.

@gasolin
Last active October 13, 2021 06:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gasolin/693a7d0ac0fdc09ecfa730ea44cb5d7f to your computer and use it in GitHub Desktop.
Save gasolin/693a7d0ac0fdc09ecfa730ea44cb5d7f to your computer and use it in GitHub Desktop.
bash_profile
# MACOS
source /usr/local/opt/nvm/nvm.sh
nvm use 14
eval "$(starship init zsh)"
export JAVA_HOME=/usr/local/Cellar/openjdk/17
export PATH=$JAVA_HOME/bin:$PATH
# https://reactnative.dev/docs/environment-setup
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export SAIHUBOT_ADDR=0xfDa995Eb398750319a2D5E8A4766c02e54db24b8,0xbCAaE2D9e18352384E533082019C98Fe9f6f2DCf,0x6b1299FD89F7bc9C4682cb1B1Af53E473EfC98d0,0xb481128d14c7b0e4145dda198dd7f0aa2460ba30
export SAIHUBOT_VALIDATOR=25220
ip(){
ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:"
}
ipcp(){
ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:"| pbcopy
}
andsim() {
$HOME/Library/Android/sdk/emulator/emulator -avd test
}
iossim() {
/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator
}
rnstart() {
REACT_DEBUGGER="unset ELECTRON_RUN_AS_NODE && open -g 'rndebugger://set-debugger-loc?port=19001' ||" npm run start
}
pr() {
git fetch upstream pull/$1/head:pr-$1
git checkout pr-$1
}
start() {
npm run start
}
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment