Skip to content

Commit 37a9fb8

Browse files
committed
.zshrc: add additional explicit setting of notable zsh options
1 parent 0a7d1cd commit 37a9fb8

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.zshrc

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,31 @@ zstyle ':completion:*' menu select
5757
# colorize cmp menu
5858
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
5959

60-
# zsh options
60+
############## zsh options
61+
# changing directories
6162
setopt autocd # change to directory by typing name
63+
64+
# completion
65+
setopt always_to_end # move cursor to the end of a completed word
66+
setopt auto_list # automatically list choices on ambiguous completion
67+
setopt auto_menu # show completion menu on a successive tab press
68+
setopt complete_in_word # complete from both ends of a word
69+
setopt menu_complete # autoselect the first completion entry
70+
71+
# history
6272
setopt append_history # append history instead of overwriting
6373
setopt share_history # share history between sessions
74+
setopt inc_append_history # write to the history file immediately, not when the shell exits
6475
setopt hist_ignore_dups # ignore duplicate entries in history
76+
setopt hist_no_store # don't store history commands
77+
setopt hist_verify # don't execute immediately upon history expansion
6578
setopt extended_history # save timestamp of each command in history
6679
setopt no_beep # disable beep on errors
80+
81+
# input/output
6782
setopt interactive_comments # allow comments in interactive shell
83+
setopt rc_quotes # allow 'Henry''s Garage' instead of 'Henry'\''s Garage'
84+
###############
6885

6986
# make history longer
7087
export HISTSIZE=1000000

0 commit comments

Comments
 (0)