Mercurial > dotfiles.old
diff zsh/setopt.zsh @ 151:87498dbd779a
Move away from oh-my-zsh
author | zegervdv <zegervdv@me.com> |
---|---|
date | Mon, 20 Oct 2014 21:49:21 +0200 |
parents | |
children | 7bb0fcd6f96a |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zsh/setopt.zsh Mon Oct 20 21:49:21 2014 +0200 @@ -0,0 +1,60 @@ +# ===== Basics + +# If you type foo, and it isn't a command, and it is a directory in your cdpath, go there +setopt AUTO_CD +setopt cdablevarS +setopt pushd_ignore_dups + +# Allow comments even in interactive shells (especially for Muness) +setopt INTERACTIVE_COMMENTS + +# ===== History + +# Allow multiple terminal sessions to all append to one zsh command history +setopt APPEND_HISTORY + +# Add comamnds as they are typed, don't wait until shell exit +setopt INC_APPEND_HISTORY + +# Do not write events to history that are duplicates of previous events +setopt HIST_IGNORE_DUPS + +# When searching history don't display results already cycled through twice +setopt HIST_FIND_NO_DUPS + +# Remove extra blanks from each command line being added to history +setopt HIST_REDUCE_BLANKS + +# Include more information about when the command was executed, etc +setopt EXTENDED_HISTORY + +setopt hist_expire_dups_first + +setopt hist_verify # Don't execute +setopt share_history + +# ===== Completion + +# Allow completion from within a word/phrase +setopt COMPLETE_IN_WORD + +# When completing from the middle of a word, move the cursor to the end of the word +setopt ALWAYS_TO_END + +# ===== Prompt + +# Enable parameter expansion, command substitution, and arithmetic expansion in the prompt +setopt PROMPT_SUBST +setopt transient_rprompt + +setopt multios + + +unsetopt MENU_COMPLETE +setopt AUTO_MENU + +setopt nobeep +setopt notify +REPORTTIME=5 + +setopt correct_all