151
|
1 # ===== Basics
|
|
2
|
|
3 # If you type foo, and it isn't a command, and it is a directory in your cdpath, go there
|
|
4 setopt AUTO_CD
|
|
5 setopt cdablevarS
|
|
6 setopt pushd_ignore_dups
|
|
7
|
|
8 # Allow comments even in interactive shells (especially for Muness)
|
|
9 setopt INTERACTIVE_COMMENTS
|
|
10
|
|
11 # ===== History
|
|
12
|
|
13 # Allow multiple terminal sessions to all append to one zsh command history
|
|
14 setopt APPEND_HISTORY
|
|
15
|
|
16 # Add comamnds as they are typed, don't wait until shell exit
|
|
17 setopt INC_APPEND_HISTORY
|
|
18
|
|
19 # Do not write events to history that are duplicates of previous events
|
|
20 setopt HIST_IGNORE_DUPS
|
|
21
|
|
22 # When searching history don't display results already cycled through twice
|
|
23 setopt HIST_FIND_NO_DUPS
|
|
24
|
|
25 # Remove extra blanks from each command line being added to history
|
|
26 setopt HIST_REDUCE_BLANKS
|
|
27
|
|
28 # Include more information about when the command was executed, etc
|
|
29 setopt EXTENDED_HISTORY
|
|
30
|
|
31 setopt hist_expire_dups_first
|
|
32
|
|
33 setopt hist_verify # Don't execute
|
|
34 setopt share_history
|
|
35
|
|
36 # ===== Completion
|
|
37
|
|
38 # Allow completion from within a word/phrase
|
|
39 setopt COMPLETE_IN_WORD
|
|
40
|
|
41 # When completing from the middle of a word, move the cursor to the end of the word
|
|
42 setopt ALWAYS_TO_END
|
|
43
|
|
44 # ===== Prompt
|
|
45
|
|
46 # Enable parameter expansion, command substitution, and arithmetic expansion in the prompt
|
|
47 setopt PROMPT_SUBST
|
|
48 setopt transient_rprompt
|
|
49
|
|
50 setopt multios
|
|
51
|
|
52 unsetopt MENU_COMPLETE
|
|
53 setopt AUTO_MENU
|
|
54
|
|
55 setopt nobeep
|
|
56 setopt notify
|
|
57 REPORTTIME=5
|
|
58
|
|
59 setopt correct_all
|
210
|
60
|
|
61 # Directory history
|
|
62 setopt autopushd
|
|
63 setopt pushdminus
|
|
64 setopt pushdsilent
|
|
65 setopt pushdtohome
|