Skip to content

Instantly share code, notes, and snippets.

@mauriciosilva
Created August 25, 2015 05:33
Show Gist options
  • Save mauriciosilva/973b178f0164e8746f01 to your computer and use it in GitHub Desktop.
Save mauriciosilva/973b178f0164e8746f01 to your computer and use it in GitHub Desktop.
zshrc-8.15
# Set up the prompt
autoload -Uz promptinit
promptinit
prompt redhat
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
alias history='history 1 -1' # todo: find out why i have to do this??
# 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'
export NVM_DIR="/home/msilva/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
## zsh source
[[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]] && . $(brew --prefix)/etc/profile.d/autojump.sh
source /usr/local/share/chruby/chruby.sh
source /usr/local/share/chruby/auto.sh
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
chruby ruby 2.1
# add system and chefdk
#RUBIES+=(
# /usr/bin
# /opt/chefdk/embedded
#)
## init chefdk for zsh
#eval "$(chef shell-init zsh)"
#### chrome profiles
#alias me='open -a "Google Chrome" --args --profile-directory="Default"'
#alias work='open -a "Google Chrome" --args --profile-directory="Profile 2"'
export PATH=$PATH:/usr/local/opt/go/libexec/bin
export GOPATH=$HOME/go2
export PATH=$PATH:$GOPATH/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment