Skip to content

Instantly share code, notes, and snippets.

@tiagopog
Last active January 14, 2018 00:37
Show Gist options
  • Save tiagopog/a93cdb8f212bcede5e98 to your computer and use it in GitHub Desktop.
Save tiagopog/a93cdb8f212bcede5e98 to your computer and use it in GitHub Desktop.
.zshrc
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <[email protected]>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Customize to your needs...
plugins=(git colored-man colorize brew zsh-syntax-highlighting)
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME=lambda
# Uncomment the following line to display red dots whilst waiting for completion.
COMPLETION_WAITING_DOTS="true"
unsetopt CORRECT # Disable autocorrect guesses. Happens when typing a wrong
# command that may look like an existing one.
expand-or-complete-with-dots() { # This bunch of code displays red dots when autocompleting
echo -n "\e[31m......\e[0m" # a command with the tab key, "Oh-my-zsh"-style.
zle expand-or-complete
zle redisplay
}
zle -N expand-or-complete-with-dots
bindkey "^I" expand-or-complete-with-dots
# Avoid displaying: ~RVM_PROJECT_PATH
# http://stackoverflow.com/questions/35237637/prezto-prompt-shows-rvm-project-path-instead-of-current-working-directory
unsetopt auto_name_dirs
# Uncomment the following line to change how often to auto-update (in days).
export UPDATE_ZSH_DAYS=30
export PATH=/Users/tiagopog/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$GOPATH/bin
export GOPATH=$HOME/Dev/go
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Aliases
alias bda="cd ~/Dev/ruby/b2beauty/beautydate"
alias dcc="docker-compose"
alias dccs="dcc -f docker-compose.yml -f docker-compose-mac.yml"
alias gca="gcloud app"
alias gcf="gcloud alpha functions"
alias gropen="docker run gropen"
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/tiagopog/Downloads/google-cloud-sdk 3/path.zsh.inc' ]; then source '/Users/tiagopog/Downloads/google-cloud-sdk 3/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/tiagopog/Downloads/google-cloud-sdk 3/completion.zsh.inc' ]; then source '/Users/tiagopog/Downloads/google-cloud-sdk 3/completion.zsh.inc'; fi
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# Path to your oh-my-zsh installation.
export ZSH=/Users/tiagopog/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="lambda"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to change how often to auto-update (in days).
export UPDATE_ZSH_DAYS=30
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to display red dots whilst waiting for completion.
COMPLETION_WAITING_DOTS="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git)
# User configuration
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/tiagopog/.rvm/gems/ruby-2.2.0/bin:/Users/tiagopog/.rvm/gems/ruby-2.2.0@global/bin:/Users/tiagopog/.rvm/rubies/ruby-2.2.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/tiagopog/.rvm/bin"
# export MANPATH="/usr/local/man:$MANPATH"
source $ZSH/oh-my-zsh.sh
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='mvim'
fi
# ssh
# export SSH_KEY_PATH="~/.ssh/dsa_id"
# Aliases
alias adt="cd ~/Dev/adtangerine; mvim ."
alias agb="cd ~/Dev/agendabeleza; mvim ."
# Vim keybing style.
bindkey -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment