-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetopt.zsh
95 lines (62 loc) · 2.27 KB
/
setopt.zsh
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
##########
# Basics #
##########
setopt no_beep # don't beep on error
setopt interactive_comments # Allow comments even in interactive shells (especially for Muness)
########################
# Changing Directories #
########################
# If you type foo, and it isn't a command, and it is a directory in your cdpath, go there
setopt auto_cd
# if argument to cd is the name of a parameter whose value is a valid directory, it will become the current directory
setopt cdablevarS
# cd automatically pushes new directory on the stack
setopt autopushd
# don't push multiple copies of the same directory onto the directory stack
setopt pushd_ignore_dups
##########################
# Expansion and Globbing #
##########################
# treat #, ~, and ^ as part of patterns for filename generation
setopt extended_glob
####################
# History #
####################
# Allow multiple terminal sessions to all append to one zsh command history
setopt append_history
# save timestamp of command and duration
setopt extended_history
# Add comamnds as they are typed, don't wait until shell exit
setopt inc_append_history
# when trimming history, lose oldest duplicates first
setopt hist_expire_dups_first
# Do not write events to history that are duplicates of previous events
setopt hist_ignore_dups
# remove command line from history list when first character on the line is a space
setopt hist_ignore_space
# 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
# don't execute, just expand history
setopt hist_verify
# imports new commands and appends typed commands to history
setopt share_history
##############
# Correction #
##############
# spelling correction for commands
setopt correct
# spelling correction for arguments
unsetopt correct_all
##########
# Prompt #
##########
# Enable parameter expansion, command substitution, and arithmetic expansion in the prompt
setopt prompt_subst
# only show the rprompt on the current prompt
setopt transient_rprompt
#########################
# Scripts and Functions #
#########################
setopt multios # perform implicit tees or cats when multiple redirections are attempted