Created
April 14, 2011 14:24
-
-
Save robertseaton/919566 to your computer and use it in GitHub Desktop.
My ZSH configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# all this stuff was autogenerated and i have no idea what it all means | |
# just like life | |
zstyle ':completion:*' completer _expand _complete _ignored | |
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:{[:lower:][:upper:]}={[:upper:][:lower:]}' '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' | |
zstyle ':completion:*' menu select=5 | |
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s | |
zstyle :compinstall filename '/home/robb/.zshrc' | |
autoload -Uz compinit | |
compinit | |
autoload -U colors | |
colors | |
# the best prompt | |
# example: [@robb downloads]$ | |
export PROMPT="%{$fg_bold[red]%}[@%m %c]$ %{$reset_color%}" | |
# I LOVE HISTORY | |
# some people might say i love history too much | |
# i have never met these people | |
HISTFILE=~/.zsh_history | |
HISTSIZE=100000000 | |
SAVEHIST=100000000 | |
# the less i have to hit tab | |
# the better | |
setopt menu_complete | |
# because i love history, appendixes, and appending things | |
setopt inc_append_history | |
# synchronize history across shells | |
# sweet relief from the voices in my head | |
setopt share_history | |
# because someday i will learn advanced pattern matching | |
# it sounds very useful, like regexps | |
setopt extendedglob | |
# save three keypresses | |
# and i mean save in the sense: | |
# INTRODUCE TO THE PATH OF THE RIGHTEOUS | |
setopt autocd | |
# seriously why does this shit even exist | |
unsetopt beep | |
# DON'T YOU YELL AT ME WHEN YOU CAN'T FIND A MATCH | |
# THAT'S YOUR PROBLEM, _NOT_ MINE | |
unsetopt nomatch | |
# when i put a process in the background, | |
# it's code for "fuck off and leave me alone" | |
unsetopt notify | |
# i feel bad for whoever implemented vi mode | |
# surely an alcoholic by now | |
bindkey -e | |
# matches current input to history items | |
# bind to up arrow and down arrow | |
# this will change your life and make traffic bearable | |
bindkey '^[[A' history-beginning-search-backward | |
bindkey '^[[B' history-beginning-search-forward | |
# manipulate a stack, | |
# with this delightful hack, | |
# and speed you will not lack | |
# refrigerator | |
setopt autopushd | |
# COLORED LS, IT MAKES YOU SMARTER | |
alias ls='ls -G' | |
# there'll be time to type sudo when i'm dead | |
alias pacman="sudo pacman" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment