277f38212aef31a6baba2cf1a0a355af611be5e0

Author
Marc Cornellà <hello@mcornella.com>
Committer
Marc Cornellà <hello@mcornella.com>
Date

Message

refactor: reorganize setopts in lib folder

Diff

 1diff --git a/lib/directories.zsh b/lib/directories.zsh
 2index 9274b5f5f3969954ad81ee74d8da26d178a7e8fc..13b680c19c8aaba130d06339e55db087a5361b5b 100644
 3--- a/lib/directories.zsh
 4+++ b/lib/directories.zsh
 5@@ -1,4 +1,5 @@
 6 # Changing/making/removing directory
 7+setopt auto_cd
 8 setopt auto_pushd
 9 setopt pushd_ignore_dups
10 setopt pushdminus
11diff --git a/lib/misc.zsh b/lib/misc.zsh
12index 1f637083a66f3576c7994f958771474a3fbeb5a9..132f335510d4676ad653a8ba1d380a32a8fe2e60 100644
13--- a/lib/misc.zsh
14+++ b/lib/misc.zsh
15@@ -15,8 +15,9 @@ if [[ $DISABLE_MAGIC_FUNCTIONS != true ]]; then
16   done
17 fi
18 
19-## jobs
20-setopt long_list_jobs
21+setopt multios              # enable redirect to multiple streams: echo >file1 >file2
22+setopt long_list_jobs       # show long list format job notifications
23+setopt interactivecomments  # recognize comments
24 
25 env_default 'PAGER' 'less'
26 env_default 'LESS' '-R'
27@@ -30,6 +31,3 @@ if (( $+commands[ack-grep] )); then
28 elif (( $+commands[ack] )); then
29   alias afind='ack -il'
30 fi
31-
32-# recognize comments
33-setopt interactivecomments
34diff --git a/lib/theme-and-appearance.zsh b/lib/theme-and-appearance.zsh
35index 1b64b51d4ef13c146a74819fa925adc7624aebbe..208ab9ce5414325acb5a9165c66ba76c3ae3d52e 100644
36--- a/lib/theme-and-appearance.zsh
37+++ b/lib/theme-and-appearance.zsh
38@@ -53,8 +53,6 @@ if command diff --color /dev/null /dev/null &>/dev/null; then
39   compdef _diff color-diff # compdef is already loaded by this point
40 fi
41 
42-setopt auto_cd
43-setopt multios
44 setopt prompt_subst
45 
46 [[ -n "$WINDOW" ]] && SCREEN_NO="%B$WINDOW%b " || SCREEN_NO=""