Skip to content

Instantly share code, notes, and snippets.

@doraeminemon
Last active July 31, 2020 08:24
Show Gist options
  • Save doraeminemon/60f4297b340ee4db859eddc460783d2a to your computer and use it in GitHub Desktop.
Save doraeminemon/60f4297b340ee4db859eddc460783d2a to your computer and use it in GitHub Desktop.
My backup.zshrc file
source ~/.zsh/antigen.zsh
export LANG=en_US.UTF-8
export SSH_KEY_PATH="~/.ssh/rsa_id"
antigen use oh-my-zsh
CASE_SENSITIVE="true"
COMPLETION_WAITING_DOTS="true"
BASE16_SHELL="$HOME/.config/base16-shell/"
[ -n "$PS1" ] && \
[ -s "$BASE16_SHELL/profile_helper.sh" ] && \
eval "$("$BASE16_SHELL/profile_helper.sh")"
export FZF_BASE="$HOME/.fzf"
antigen bundles <<EOBUNDLES
asdf
dotenv
docker
git
git-flow
node
osx
rails
rake
swift
supercrabtree/k
zdharma/fast-syntax-highlighting
zsh-users/zsh-autosuggestions
zsh-users/zsh-completions
trapd00r/zsh-syntax-highlighting-filetypes
fzf
EOBUNDLES
#$bzsh-users/zsh-history-substring-search ./zsh-history-substring-search.zsh
antigen theme avit
export DEPLOY_KEY=$(cat ~/.ssh/id_rsa.base)
export GOPATH=$HOME/go
export POSTGRES_USER='dodinhthyson'
export ANDROID_PATH="$HOME/Library/Android/sdk/"
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin
export PATH="$PATH:$GOPATH/bin"
export PATH="$PATH:$ANDROID_PATH/tools/bin"
export PATH="$PATH:$ANDROID_PATH/platform-tools"
export PATH="$PATH:$ANDROID_PATH/build-tools"
export PATH="$PATH:$ANDROID_PATH/emulator"
export PATH="$HOME/.serverless/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
export ASDFROOT=$HOME/.asdf
export ASDFINSTALLS=$HOME/.asdf/installs
GOV=$(asdf current golang | sed 's/ (set by .*)//g')
# export GOROOT=$ASDFINSTALLS/golang/$GOV/go/
export GOROOT=/Users/dodinhthyson/.asdf/installs/golang/1.13.7/go
export PICKUP=$GOPATH/src/bitbucket.org/pick-up/
export BITBUCKET_APP_PASSWORD="FhrLG7M1obyZ"
export BITBUCKET_USERNAME="tyson-do-pickupp"
alias zshconfig="code ~/.zshrc"
alias ohmyzsh="code ~/.oh-my-zsh"
alias chrome="open -a 'Google Chrome'"
alias docker-stop-all="docker stop $(docker ps -a -q)"
alias gita="python3 -m gita"
alias tf="terraform"
alias dk="docker"
alias dkc="docker-compose"
alias pnpm36="/Users/dodinhthyson/.asdf/installs/nodejs/10.15.3/.npm/pnpm-global/2/node_modules/.registry.npmjs.org/pnpm/3.6.0/node_modules/pnpm/bin/pnpm.js"
alias launchPackager="$PICKUP/hkpickupdaapp/node_modules/react-native/scripts/launchPackager.command; exit ;"
alias getProtos="sh -c 'cd $GOPATH/src/bitbucket.org/pick-up/pickupp/packages/protos && asdf local nodejs 12.16.1 && yarn install && yarn build'"
get-docker() { docker ps | grep $1 | cut -d " " -f1 }
## These lines must be at the end of the config file.
antigen apply
# Config environment for asdf
autoload -Uz compinit && compinit
eval "$(direnv hook zsh)"
# tabtab source for packages
# uninstall by removing these lines
[[ -f ~/.config/tabtab/__tabtab.zsh ]] && . ~/.config/tabtab/__tabtab.zsh || true
@doraeminemon
Copy link
Author

Remember to install these on first :

  • zsh
  • antigen
  • asdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment