summaryrefslogtreecommitdiff
path: root/dot_config/zsh/zshrc.options
blob: 8335d8ab1eb494247cbd0717b7fdb1e391550f3c (plain) (blame)
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
# -*- mode: sh -*-
# vim: ft=zsh
### Options
# Almost all options are set explicitly
## Changing Directories
# TODO: consider -T
setopt -JED +NTw
setopt nocdsilent nochasedots noposixcd pushdignoredups

## Completion
setopt -9X +SY
setopt alwayslastprompt noalwaystoend automenu autonamedirs autoparamkeys
setopt autoparamslash autoremoveslash nobashautolist completealiases
setopt completeinword noglobcomplete nohashlistall listambiguous nolistbeep
setopt listpacked listrowsfirst

## Expansion and Globbing
setopt -3GP +2F4I8u
setopt bareglobqual nobraceccl caseglob casematch nocasepaths nocshnullglob
# TODO: consider forcefloat, globassign
setopt equals extendedglob noforcefloat noglobassign globstarshort noglobsubst
setopt nohistsubstpattern noignoreclosebraces nokshglob nomagicequalsubst
setopt multibyte numericglobsort rematchpcre noshglob
setopt warncreateglobal nowarnnestedvar

## History
setopt -hg +K
setopt appendhistory noextendedhistory nohistallowclobber nohistbeep
setopt histexpiredupsfirst histfcntllock histfindnodups nohistignorealldups
setopt histlexwords nohistnofunctions histnostore histreduceblanks
setopt histsavebycopy histsavenodups histverify noincappendhistory
setopt noincappendhistorytime nosharehistory

## Initialisation
# NOTE: +df unspecified on purpose
setopt +a

## Input/Output
# NOTE: +1 since that should be handled by the prompt ideally
setopt -kQ +C0O7U1HL
# TODO: consider nohashcmds
setopt aliases clobberempty nodvorak flowcontrol hashcmds hashdirs
setopt hashexecutablesonly nopathscript noprinteightbit rcquotes normstarwait
setopt shortloops noshortrepeat

## Job Control
# TODO: consider -R
setopt -6m5 +WR
setopt autocontinue checkjobs checkrunningjobs hup noposixjobs

## Prompting
setopt +V
setopt nopromptbang promptsp promptpercent promptsubst transientrprompt

## Scripts and Functions
setopt +en
# TODO: consider cprecedences
setopt noaliasfuncdef cbases nocprecedences debugbeforecmd noerrreturn
setopt evallineno functionargzero nolocalloops nolocaloptions nolocalpatterns
setopt nolocaltraps multifuncdef multios nooctalzeroes pipefail
# NOTE: nosourcetrace, +vx not set for specifying it on the CLI
setopt notypesetsilent notypesettounset

## Shell Emulation
setopt +y
setopt appendcreate nobashrematch nobsdecho nocontinueonerror
setopt nocshjunkiehistory nocshjunkieloops nocshjunkiequotes nocshnullcmd
# TODO: consider kshautoload, be sad about kshzerosubscript
setopt noksharrays nokshautoload kshoptionprint nokshtypeset nokshzerosubscript
setopt noposixaliases noposixargzero noposixbuiltins noposixidentifiers
setopt noposixstrings noposixtraps noshfileexpansion noshnullcmd noshoptionletters
setopt notrapsasync

## Shell State
# NOTE: Omitted intentionally

## Zle
setopt -B +M
# NOTE: Many omitted intentionally