Skip to content

Instantly share code, notes, and snippets.

@matachi
Created June 22, 2013 11:13
Show Gist options
  • Save matachi/5840491 to your computer and use it in GitHub Desktop.
Save matachi/5840491 to your computer and use it in GitHub Desktop.
# Init completion
autoload -U compinit && compinit
compinit
# Init custom prompt
autoload promptinit
promptinit
# Init colors for prompt
autoload -U colors && colors
# Autocompletion with menu
zstyle ':completion:*' menu select
# Custom prompt
PROMPT="%{$fg_bold[yellow]%}%T%{$reset_color%}% %# "
RPROMPT="%{$fg_no_bold[yellow]%}%4~%{$reset_color%}"
# Some aliases from .bashrc
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# Store history
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.zsh_history
# Vi input mode
bindkey -v
# Enable CTRL-R search
bindkey ^R history-incremental-search-backward
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment