-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path10-options.zsh
More file actions
52 lines (40 loc) · 2.62 KB
/
Copy path10-options.zsh
File metadata and controls
52 lines (40 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 10-options.zsh — Shell behavior & options configuration
# =============================================================================
# Prompt & expansion options
# =============================================================================
# Allow prompt to expand $(...) and other substitutions (needed by modern prompts)
setopt prompt_subst
# =============================================================================
# Quality of life improvements
# =============================================================================
setopt interactivecomments # Allow comments after commands in interactive shell
setopt autocd # Typing a directory name = cd into it
setopt extendedglob # Enable powerful globbing patterns
setopt noshwordsplit # Safer word-splitting in parameter expansion
setopt nohup # Keep jobs running on hangup
setopt nobeep # Silence the terminal bell
# =============================================================================
# Directory navigation enhancements
# =============================================================================
setopt auto_pushd # cd acts like pushd (maintains directory stack)
setopt pushd_ignore_dups # Don't push duplicate directories onto stack
setopt pushd_silent # Don't print directory stack after pushd/popd
# =============================================================================
# Globbing & pattern matching
# =============================================================================
setopt glob_dots # Include dotfiles in globs (e.g., * matches .hidden)
setopt numeric_glob_sort # Sort numerically when possible (file1 file2 file10)
setopt mark_dirs # Append trailing slash to directory names from globs
# =============================================================================
# Completion
# =============================================================================
setopt list_packed # Make completion lists more compact
setopt auto_list # Automatically list choices on ambiguous completion
# =============================================================================
# History management
# =============================================================================
# Advanced history options for better experience
setopt hist_ignore_all_dups # Remove older duplicate entries from history
setopt hist_reduce_blanks # Trim unnecessary whitespace from history entries
setopt share_history # Share history between all terminal sessions
setopt inc_append_history # Append to history incrementally (real-time)