Skip to content

Instantly share code, notes, and snippets.

@mxswd
Created August 21, 2011 12:54
Show Gist options
  • Save mxswd/1160581 to your computer and use it in GitHub Desktop.
Save mxswd/1160581 to your computer and use it in GitHub Desktop.
My .zshrc
# maxs
# History
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
# task warrior
fpath=($fpath /usr/local/Cellar/task/1.9.4/share/doc/task/scripts/zsh)
# Completion
autoload -U compinit
compinit
zstyle ':completion:*' completer _complete _match _approximate
zstyle ':completion:*' menu select=2
zstyle ':completion:*:match:*' original only
zstyle ':completion:*:approximate:*' max-errors 1 numeric
autoload -U colors
colors
# task completions with color
zstyle ':completion:*:*:task:*:arguments' list-colors "=(#b) #([^-]#)*=$color[cyan]=$color[bold];$color[blue]"
zstyle ':completion:*:*:task:*:default' list-colors "=(#b) #([^-]#)*=$color[cyan]=$color[green]"
zstyle ':completion:*:*:task:*:values' list-colors "=(#b) #([^-]#)*=$color[cyan]=$color[bold];$color[red]"
zstyle ':completion:*:*:task:*:commands' list-colors "=(#b) #([^-]#)*=$color[cyan]=$color[yellow]"
zstyle ':completion:*' group-name ''
setopt completealiases
bindkey "^[[A" history-search-backward
bindkey "^[[B" history-search-forward
#PS1=$'${PR_BLUE}${PR_USER}${PR_NO_COLOR}:${PR_GREEN}${}${PR_NO_COLOR}\$'
#PS2=$'%_>'
#export PROMPT="%{$fg[red]%}%B%(?..[%?] )%b%n> "
PROMPT="%{$fg[red]%}%n%{$reset_color%} %{$fg[yellow]%}%1~ %{$reset_color%}$ "
RPROMPT="[%{$fg[yellow]%}%?%{$reset_color%}]"
#prompt_opts=(cr percent)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment