Created
August 17, 2020 12:26
-
-
Save pedrobritto/b0f01301bb37f7e895f1fcf781af4373 to your computer and use it in GitHub Desktop.
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
###################### | |
## Antigen Settings ## | |
###################### | |
# Source Antigen | |
source $HOME/antigen.zsh | |
antigen use oh-my-zsh | |
antigen bundle git | |
antigen bundle git-flow | |
antigen bundle git-extras | |
antigen bundle docker | |
antigen bundle docker-compose | |
antigen bundle osx | |
antigen bundle npm | |
antigen bundle z | |
antigen bundle encode64 | |
antigen bundle djui/alias-tips | |
antigen bundle zsh-users/zsh-autosuggestions | |
antigen bundle zsh-users/zsh-completions | |
antigen theme denysdovhan/spaceship-prompt | |
antigen apply | |
######################## | |
## OH MY ZSH Settings ## | |
######################## | |
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
plugins=(zsh-syntax-highlighting) | |
SPACESHIP_PROMPT_ORDER=( | |
time | |
user # Username section | |
dir # Current directory section | |
host # Hostname section | |
git # Git section (git_branch + git_status) | |
hg # Mercurial section (hg_branch + hg_status) | |
exec_time # Execution time | |
line_sep # Line break | |
vi_mode # Vi-mode indicator | |
jobs # Background jobs indicator | |
exit_code # Exit code section | |
char # Prompt character | |
) | |
SPACESHIP_USER_SHOW=always | |
SPACESHIP_CHAR_SYMBOL="❯" | |
SPACESHIP_CHAR_SUFFIX=" " | |
SPACESHIP_TIME_SHOW=true | |
COMPLETION_WAITING_DOTS="true" | |
HIST_STAMPS="yyyy-mm-dd" | |
source $ZSH/oh-my-zsh.sh | |
################# | |
## User Config ## | |
################# | |
# Turn on all the completion stuff | |
autoload -Uz compinit && compinit | |
autoload -Uz promptinit && promptinit | |
# General zshzle options | |
setopt autocd # cd by just typing in a directory name | |
setopt nomatch # warn me if a glob doesn't match anything | |
setopt no_case_glob # globbing is case insensitive | |
setopt interactive_comments # commands preceded with '#' aren't run | |
setopt menu_complete # Show completions like Vim (cycle through) | |
export MENU_COMPLETE=1 | |
# iTerm2 Shell Integration | |
if [ -e $HOME/.iterm2_shell_integration.zsh ] | |
then | |
source $HOME/.iterm2_shell_integration.zsh | |
fi | |
############# | |
## Aliases ## | |
############# | |
alias glolan="glola --name-status" | |
alias _gus="gl && npm start" | |
alias gunlast="git reset --soft HEAD~1" | |
alias gupod="gup origin development" | |
alias aa-scripts="node ~/Documents/repos/aa/aa-scripts/aa-scripts.js" | |
############# | |
## Exports ## | |
############# | |
# NVM | |
source ~/.nvm/nvm.sh | |
export NVM_DIR=~/.nvm | |
export NVM_DIR="$HOME/.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 | |
# Android | |
export ANDROID_HOME=$HOME/Library/Android/sdk | |
export PATH=$PATH:$ANDROID_HOME/tools | |
export PATH=$PATH:$ANDROID_HOME/tools/bin | |
export PATH=$PATH:$ANDROID_HOME/platform-tools | |
export PATH=$PATH:$ANDROID_HOME/emulator | |
# Python | |
export PYENV_ROOT="$HOME/.pyenv" | |
export PATH="$PYENV_ROOT/bin:$PATH" | |
if command -v pyenv 1>/dev/null 2>&1; then | |
eval "$(pyenv init -)" | |
fi | |
# Sass | |
export PATH=$HOME/sass:$PATH | |
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH" | |
# tabtab source for serverless package | |
# uninstall by removing these lines or running `tabtab uninstall serverless` | |
[[ -f /home/pedro/Documents/repos/aa-public-server/node_modules/tabtab/.completions/serverless.zsh ]] && . /home/pedro/Documents/repos/aa-public-server/node_modules/tabtab/.completions/serverless.zsh | |
# tabtab source for sls package | |
# uninstall by removing these lines or running `tabtab uninstall sls` | |
[[ -f /home/pedro/Documents/repos/aa-public-server/node_modules/tabtab/.completions/sls.zsh ]] && . /home/pedro/Documents/repos/aa-public-server/node_modules/tabtab/.completions/sls.zsh | |
# tabtab source for slss package | |
# uninstall by removing these lines or running `tabtab uninstall slss` | |
[[ -f /home/pedro/Documents/repos/aa-public-server/node_modules/tabtab/.completions/slss.zsh ]] && . /home/pedro/Documents/repos/aa-public-server/node_modules/tabtab/.completions/slss.zsh | |
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. | |
export PATH="$PATH:$HOME/.rvm/bin" | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment