Skip to content

Instantly share code, notes, and snippets.

@mauriciosilva
Created October 14, 2015 04:12
Show Gist options
  • Save mauriciosilva/5962e5f2bfb12b26a662 to your computer and use it in GitHub Desktop.
Save mauriciosilva/5962e5f2bfb12b26a662 to your computer and use it in GitHub Desktop.
zshrc.10.13.15
# Set up the prompt
setopt inc_append_history histignorealldups share_history
# Use emacs keybindings even if our EDITOR is set to vi
bindkey -e
HISTFILE=~/.zsh_history
HISTSIZE=10000000
SAVEHIST=10000000
# Use modern completion system
autoload -Uz compinit
compinit
zstyle ':completion:*' auto-description 'specify: %d'
zstyle ':completion:*' completer _expand _complete _correct _approximate
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' menu select=2
#eval "$(dircolors -b)"
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
zstyle ':completion:*' menu select=long
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' use-compctl false
zstyle ':completion:*' verbose true
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
## autojump sourcing
[[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]] && . $(brew --prefix)/etc/profile.d/autojump.sh
## chruby
source /usr/local/share/chruby/chruby.sh
source /usr/local/share/chruby/auto.sh
# add chefdk
RUBIES+=(
/opt/chefdk/embedded
)
## git-prompt
source /Users/msilva/dev/src/zsh-git-prompt/zshrc.sh
PROMPT='%B%m%~%b$(git_super_status) %# '
## init chefdk for zsh
#eval "$(chef shell-init zsh)"
# export PATH=$PATH:/usr/local/opt/go/libexec/bin
# export GOPATH=$HOME/dev/go
# export PATH=$PATH:$GOPATH/bin
export NVM_DIR="/Users/msilva/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
eval "$(chef shell-init zsh)"
autoload -Uz promptinit
promptinit
prompt redhat
alias ll="ls -lG"
alias history='history 1 -1' # todo: find out why i have to do this??
alias running="vagrant global-status | grep running"
alias vi=vim
## random
alias listrunning='VBoxManage list runningvms'
## git
alias gsp='git smart-pull'
alias gsl='git smart-log'
alias gst='git status'
alias git=hub
#### chrome profiles
#alias me='open -a "Google Chrome" --args --profile-directory="Default"'
#alias work='open -a "Google Chrome" --args --profile-directory="Profile 2"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment