diff options
author | Marc Cornellà <hello@mcornella.com> | 2023-02-24 20:55:31 +0100 |
---|---|---|
committer | Marc Cornellà <hello@mcornella.com> | 2023-02-24 20:55:31 +0100 |
commit | 277f38212aef31a6baba2cf1a0a355af611be5e0 (patch) | |
tree | a6e861dbb15257964b8553f264cd8f74cf983860 /lib | |
parent | 5cb943eea46d322542c5c2a9f54b201eddc2aa67 (diff) | |
download | zsh-277f38212aef31a6baba2cf1a0a355af611be5e0.tar.gz zsh-277f38212aef31a6baba2cf1a0a355af611be5e0.tar.bz2 zsh-277f38212aef31a6baba2cf1a0a355af611be5e0.zip |
refactor: reorganize setopts in lib folder
Diffstat (limited to 'lib')
-rw-r--r-- | lib/directories.zsh | 1 | ||||
-rw-r--r-- | lib/misc.zsh | 8 | ||||
-rw-r--r-- | lib/theme-and-appearance.zsh | 2 |
3 files changed, 4 insertions, 7 deletions
diff --git a/lib/directories.zsh b/lib/directories.zsh index 9274b5f5f..13b680c19 100644 --- a/lib/directories.zsh +++ b/lib/directories.zsh @@ -1,4 +1,5 @@ # Changing/making/removing directory +setopt auto_cd setopt auto_pushd setopt pushd_ignore_dups setopt pushdminus diff --git a/lib/misc.zsh b/lib/misc.zsh index 1f637083a..132f33551 100644 --- a/lib/misc.zsh +++ b/lib/misc.zsh @@ -15,8 +15,9 @@ if [[ $DISABLE_MAGIC_FUNCTIONS != true ]]; then done fi -## jobs -setopt long_list_jobs +setopt multios # enable redirect to multiple streams: echo >file1 >file2 +setopt long_list_jobs # show long list format job notifications +setopt interactivecomments # recognize comments env_default 'PAGER' 'less' env_default 'LESS' '-R' @@ -30,6 +31,3 @@ if (( $+commands[ack-grep] )); then elif (( $+commands[ack] )); then alias afind='ack -il' fi - -# recognize comments -setopt interactivecomments diff --git a/lib/theme-and-appearance.zsh b/lib/theme-and-appearance.zsh index 1b64b51d4..208ab9ce5 100644 --- a/lib/theme-and-appearance.zsh +++ b/lib/theme-and-appearance.zsh @@ -53,8 +53,6 @@ if command diff --color /dev/null /dev/null &>/dev/null; then compdef _diff color-diff # compdef is already loaded by this point fi -setopt auto_cd -setopt multios setopt prompt_subst [[ -n "$WINDOW" ]] && SCREEN_NO="%B$WINDOW%b " || SCREEN_NO="" |