mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 07:20:40 +01:00
refactor: reorganize setopts in lib folder
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
# Changing/making/removing directory
|
# Changing/making/removing directory
|
||||||
|
setopt auto_cd
|
||||||
setopt auto_pushd
|
setopt auto_pushd
|
||||||
setopt pushd_ignore_dups
|
setopt pushd_ignore_dups
|
||||||
setopt pushdminus
|
setopt pushdminus
|
||||||
|
|||||||
@@ -15,8 +15,9 @@ if [[ $DISABLE_MAGIC_FUNCTIONS != true ]]; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## jobs
|
setopt multios # enable redirect to multiple streams: echo >file1 >file2
|
||||||
setopt long_list_jobs
|
setopt long_list_jobs # show long list format job notifications
|
||||||
|
setopt interactivecomments # recognize comments
|
||||||
|
|
||||||
env_default 'PAGER' 'less'
|
env_default 'PAGER' 'less'
|
||||||
env_default 'LESS' '-R'
|
env_default 'LESS' '-R'
|
||||||
@@ -30,6 +31,3 @@ if (( $+commands[ack-grep] )); then
|
|||||||
elif (( $+commands[ack] )); then
|
elif (( $+commands[ack] )); then
|
||||||
alias afind='ack -il'
|
alias afind='ack -il'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# recognize comments
|
|
||||||
setopt interactivecomments
|
|
||||||
|
|||||||
@@ -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
|
compdef _diff color-diff # compdef is already loaded by this point
|
||||||
fi
|
fi
|
||||||
|
|
||||||
setopt auto_cd
|
|
||||||
setopt multios
|
|
||||||
setopt prompt_subst
|
setopt prompt_subst
|
||||||
|
|
||||||
[[ -n "$WINDOW" ]] && SCREEN_NO="%B$WINDOW%b " || SCREEN_NO=""
|
[[ -n "$WINDOW" ]] && SCREEN_NO="%B$WINDOW%b " || SCREEN_NO=""
|
||||||
|
|||||||
Reference in New Issue
Block a user