Last active
November 11, 2019 14:58
-
-
Save pedrobritto/5a2e31563c8b90b13ba28d556524ba3d 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 npm | |
antigen bundle z | |
antigen bundle encode64 | |
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=( | |
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_PROMPT_ADD_NEWLINE=false | |
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" | |
############# | |
## 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 | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment