Skip to content

Commit 3c89cda

Browse files
committed
refactor(zsh): remove options with default values
1 parent 348db38 commit 3c89cda

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

home/dot_config/exact_zsh/exact_config/options.zsh

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,37 @@
11
# Zsh Line Editor
22
typeset -g zle_highlight=(region:bg=black) # Highlight the background of the text when selecting.
33
typeset -g WORDCHARS='*?_-.[]~=&;!#$%^(){}<>' # List of characters considered part of a word.
4+
setopt COMBINING_CHARS # Handle combining characters correctly (macOS NFD Unicode).
45
setopt NO_BEEP # Don't beep on errors.
56
setopt VI # Use vi emulation mode.
67

78
# Changing Directories
89
typeset -g DIRSTACKSIZE=9 # The maximum size of the directory stack for `pushd` and `popd`.
910
setopt AUTO_CD # If can't execute the directory, perform the cd command to that.
1011
setopt AUTO_PUSHD # Make cd push the old directory onto the directory stack.
11-
setopt NO_CDABLE_VARS # Don't expand arguments given to a cd command.
12-
setopt NO_CHASE_DOTS # Don't resolve symbolic links upon path segments.
13-
setopt NO_CHASE_LINKS # Don't resolve symbolic links upon changing directories.
14-
setopt NO_POSIX_CD # Make cd command POSIX incompatible.
1512
setopt PUSHD_IGNORE_DUPS # Don't push multiple copies of the same directory onto the stack.
1613
setopt PUSHD_MINUS # Exchanges the meanings of `+` and `-` for pushd.
1714
setopt PUSHD_SILENT # Do not print the directory stack after pushd or popd.
1815
setopt PUSHD_TO_HOME # Have pushd with no arguments act like `pushd $HOME`.
1916

2017
# Completion
21-
setopt COMPLETE_ALIASES # Prevent aliases from being substituted before completion is attempted.
2218
setopt COMPLETE_IN_WORD # Attempt to start completion from both ends of a word.
23-
setopt GLOB_COMPLETE # Don't insert anything resulting from a glob pattern, show completion menu.
24-
setopt NO_LIST_BEEP # Don't beep on an ambiguous completion.
25-
setopt LIST_PACKED # Try to make the completion list smaller by drawing smaller columns.
26-
setopt MENU_COMPLETE # Instead of listing possibilities, select the first match immediately.
2719

2820
# Expansion and Globbing
29-
setopt BRACE_CCL # Expand expressions in braces which would not otherwise undergo brace expansion.
3021
setopt EXTENDED_GLOB # Treat the `#`, `~` and `^` characters as part of patterns for globbing.
3122
setopt GLOB_DOTS # Don't require a leading '.' in a filename to be matched explicitly.
3223
setopt MAGIC_EQUAL_SUBST # Unquoted arguments of the form `key=value` have filename expansion performed.
3324
setopt MARK_DIRS # Append a trailing `/` to all directory names resulting from globbing.
3425
setopt NO_NOMATCH # If a pattern has no matches, don't print an error, leave it unchanged.
35-
# setopt WARN_CREATE_GLOBAL # Warn when a global variables is created in a function.
36-
# setopt WARN_NESTED_VAR # Warn when an existing variables from an outer scope is set in a function.
3726

3827
# Disable History (History is managed by `atuin`.)
3928
typeset -g SAVEHIST=0 # Disable saving history.
4029
unset HISTFILE # Don't use a history file.
4130

4231
# Input/Output
43-
typeset -g KEYTIMEOUT=10 # The time the shell waits, for another key to be pressed in milliseconds.
32+
typeset -g KEYTIMEOUT=20 # The time the shell waits, for another key to be pressed in milliseconds.
4433
setopt NO_CLOBBER # Don't allow `>` redirection to override existing files. Use `>!` instead.
4534
setopt NO_FLOW_CONTROL # Disable flow control characters `^S` and `^Q`.
46-
setopt NO_IGNORE_EOF # Enable ^D to logout, exit on end-of-file.
4735
setopt INTERACTIVE_COMMENTS # Allow comments even in interactive shells.
4836
setopt RM_STAR_WAIT # Before executing `rm *` first wait 10 seconds and ignore anything typed.
4937

0 commit comments

Comments
 (0)