From 1a44a4f9ae6663a1f4a032e92577e44fee3ca258 Mon Sep 17 00:00:00 2001 From: Shawn M Moore Date: Sun, 9 Sep 2007 13:50:13 -0500 Subject: Comments and folds --- zshrc | 37 +++++++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 12 deletions(-) (limited to 'zshrc') diff --git a/zshrc b/zshrc index 4bb4a0f..0a342a4 100644 --- a/zshrc +++ b/zshrc @@ -1,28 +1,35 @@ +# my silly prompt {{{ autoload -U promptinit promptinit prompt adam2 gray yellow green white RPS1='[%*]' +# }}} -# uses completion cache +# use completion cache {{{ zstyle ':completion::complete:*' use-cache 1 +# }}} +# history {{{ HISTFILE=$HOME/.history HISTSIZE=100000 SAVEHIST=100000 setopt extended_history setopt share_history setopt hist_ignore_space +# }}} -setopt correctall -setopt nobeep -setopt auto_cd -setopt multios +# miscellaneous options {{{ +setopt correctall # yes it's annoying. but only half the time +setopt nobeep # I hates the beeps +setopt auto_cd # typing just a directory name cds into it +setopt multios # built-in tee setopt extended_glob -setopt nullglob +setopt nullglob # it's not an error for a glob to expand to nothing setopt list_ambiguous setopt no_nomatch setopt interactivecomments # Allow comments even in the interactive shell -setopt listpacked # column width isn't constant +setopt listpacked # column width doesn't have to be constant +# }}} # Bindkeys {{{ bindkey -v # Use vim bindings @@ -32,34 +39,39 @@ bindkey "^N" accept-and-infer-next-history # Enter; pop next history event bindkey "^O" push-line # Pushes line to buffer stack bindkey "^P" get-line # Pops top of buffer stack bindkey "^R" history-incremental-search-backward # Like in bash, but should ! -bindkey "^T" transpose-chars # Transposes adjacent chars +bindkey "^T" transpose-chars # Transposes adjacent chars (xp in vim) bindkey "^Z" accept-and-hold # Enter and push line bindkey " " magic-space # Expands from hist (!vim ) bindkey "^\\" pound-insert # As an alternative to ctrl-c; will go in hist bindkey "\e[3~" delete-char # Enable delete # }}} +# stuff we don't want to correct {{{ alias mkdir='nocorrect mkdir' alias mv='nocorrect mv' alias cp='nocorrect cp' +# }}} -# the default utilities are so laaaame +# replace default utilities {{{ alias man="man -P vimmanpager" #alias top="htop" +# }}} -# colorify utilities +# add color to some things {{{ alias ls='ls -G' alias ll='ls -lhA' alias ack='ack --color' # see also ~/.zshenv +# }}} -# services +# telnet services (nao, termcast, etc) {{{ alias nao="(TERM='rxvt'; telnet nethack.alt.org)" alias cao="telnet crawl.akrasiac.org" alias termcast="telnet noway.ratry.ru 37331" alias sporkhack='telnet nethack.nineball.org' +# }}} -# shell accounts +# shell accounts {{{ alias katron="ssh katron.org" alias dk="ssh darcs.katron.org" alias arcane="ssh 66.41.105.165" @@ -68,6 +80,7 @@ alias akrasiac="ssh henzell@crawl.akrasiac.org" alias diesel="ssh diesel.bestpractical.com" alias rax="ssh sartak.org" alias home='ssh $HOMEIP' +# }}} # shortcuts alias tdA="todo -f children" -- cgit v1.2.3-54-g00ecf