2009-01-17 14:48:22 -05:00
|
|
|
# only alphanumeric chars for moving around
|
|
|
|
WORDCHARS=''
|
|
|
|
|
|
|
|
# disable core dumps
|
2010-09-02 11:49:57 -05:00
|
|
|
if ulimit -c >/dev/null 2>&1 ; then
|
2010-05-31 15:41:12 -07:00
|
|
|
ulimit -c 0
|
2010-04-24 13:01:56 -05:00
|
|
|
fi
|
2009-01-17 14:48:22 -05:00
|
|
|
|
|
|
|
# clear on exit
|
|
|
|
trap clear 0
|
|
|
|
|
|
|
|
# shell options
|
2010-05-31 15:48:54 -07:00
|
|
|
setopt ALWAYS_TO_END # goto end of word on completion
|
|
|
|
setopt AUTO_CD # directoy command does cd
|
|
|
|
setopt AUTO_PUSHD # cd uses directory stack
|
|
|
|
setopt BASH_AUTO_LIST # list completions on second tab
|
|
|
|
setopt CDABLE_VARS # cd var works if $var is a directory
|
|
|
|
setopt CHASE_DOTS # resolve .. in cd
|
|
|
|
setopt CHASE_LINKS # resolve symbolic links in cd
|
|
|
|
setopt COMPLETE_IN_WORD # completion works inside words
|
|
|
|
setopt CORRECT # correct spelling of commands
|
|
|
|
setopt EXTENDED_GLOB # use zsh globbing extensions
|
|
|
|
setopt INTERACTIVE_COMMENTS # allow comments in interactive shells
|
|
|
|
setopt LIST_ROWS_FIRST # list completions across
|
|
|
|
setopt MAGIC_EQUAL_SUBST # special expansion after all =
|
|
|
|
setopt PUSHD_SILENT # make pushd quiet
|
|
|
|
setopt PROMPT_SUBST # allow substitutions in the prompt
|
|
|
|
setopt SH_WORD_SPLIT # split non-array variables
|
2009-01-17 14:48:22 -05:00
|
|
|
|
2010-05-31 15:48:54 -07:00
|
|
|
unsetopt NO_MATCH # dont error on no glob matches
|
|
|
|
|
|
|
|
# (disable) beeping
|
2009-01-17 14:48:22 -05:00
|
|
|
unsetopt BEEP # stop beeping!
|
2010-05-31 15:48:54 -07:00
|
|
|
unsetopt HIST_BEEP # really, stop beeping!
|
2009-01-17 14:48:22 -05:00
|
|
|
unsetopt LIST_BEEP # seriously, stop beeping!
|
|
|
|
|
|
|
|
# history
|
|
|
|
export HISTSIZE=1000
|
|
|
|
export SAVEHIST=1000
|
|
|
|
export HISTFILE="${HOME}/.zsh/.history"
|
|
|
|
|
|
|
|
setopt SHARE_HISTORY
|
|
|
|
setopt HIST_IGNORE_SPACE
|
|
|
|
setopt HIST_REDUCE_BLANKS
|
|
|
|
setopt INC_APPEND_HISTORY
|
|
|
|
setopt HIST_IGNORE_ALL_DUPS
|
|
|
|
|
|
|
|
unsetopt HIST_BEEP
|
|
|
|
unsetopt EXTENDED_HISTORY
|