Check minimum required zsh version in modules and dont return from the main init
This commit is contained in:
parent
00348eca51
commit
1cb064898f
5 changed files with 29 additions and 2 deletions
3
init.zsh
3
init.zsh
|
@ -7,10 +7,9 @@
|
|||
#
|
||||
|
||||
# Check for the minimum supported version.
|
||||
min_zsh_version='4.3.10'
|
||||
min_zsh_version='4.2.6'
|
||||
if ! autoload -Uz is-at-least || ! is-at-least "$min_zsh_version"; then
|
||||
print "omz: old shell detected, minimum required: $min_zsh_version" >&2
|
||||
return 1
|
||||
fi
|
||||
unset min_zsh_version
|
||||
|
||||
|
|
|
@ -40,6 +40,13 @@
|
|||
# zstyle ':omz:module:editor' completing '...'
|
||||
#
|
||||
|
||||
# Check for the minimum supported version.
|
||||
min_zsh_version='4.3.10'
|
||||
if ! autoload -Uz is-at-least || ! is-at-least "$min_zsh_version"; then
|
||||
return 1
|
||||
fi
|
||||
unset min_zsh_version
|
||||
|
||||
# Dumb terminals lack support.
|
||||
if [[ "$TERM" == 'dumb' ]]; then
|
||||
return 1
|
||||
|
|
|
@ -6,6 +6,13 @@
|
|||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
#
|
||||
|
||||
# Check for the minimum supported version.
|
||||
min_zsh_version='4.3.10'
|
||||
if ! autoload -Uz is-at-least || ! is-at-least "$min_zsh_version"; then
|
||||
return 1
|
||||
fi
|
||||
unset min_zsh_version
|
||||
|
||||
source "${0:h}/external/zsh-history-substring-search.zsh"
|
||||
|
||||
if zstyle -t ':omz:module:history-substring-search' case-sensitive; then
|
||||
|
|
|
@ -5,6 +5,13 @@
|
|||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
#
|
||||
|
||||
# Check for the minimum supported version.
|
||||
min_zsh_version='4.3.10'
|
||||
if ! autoload -Uz is-at-least || ! is-at-least "$min_zsh_version"; then
|
||||
return 1
|
||||
fi
|
||||
unset min_zsh_version
|
||||
|
||||
if zstyle -t ':omz:module:syntax-highlighting' color; then
|
||||
source "${0:h}/external/zsh-syntax-highlighting.zsh"
|
||||
|
||||
|
|
|
@ -6,6 +6,13 @@
|
|||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
#
|
||||
|
||||
# Check for the minimum supported version.
|
||||
min_zsh_version='4.3.10'
|
||||
if ! autoload -Uz is-at-least || ! is-at-least "$min_zsh_version"; then
|
||||
return 1
|
||||
fi
|
||||
unset min_zsh_version
|
||||
|
||||
# Dumb terminals lack support.
|
||||
if [[ "$TERM" == 'dumb' ]]; then
|
||||
return 1
|
||||
|
|
Loading…
Add table
Reference in a new issue