mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-12-01 04:43:04 +01:00
- eval `zsh-patina activate` when installed, else print install URL - ZSH_PATINA_BINARY overrides the binary path, eg: ~/.cargo/bin - skip with a warning when zsh-syntax-highlighting is enabled - modeled on the zoxide plugin
8 lines
439 B
Bash
8 lines
439 B
Bash
if (( $+ZSH_HIGHLIGHT_VERSION )) || (( ${plugins[(Ie)zsh-syntax-highlighting]} )); then
|
|
echo '[oh-my-zsh] zsh-patina conflicts with zsh-syntax-highlighting, please enable only one of them'
|
|
elif [[ -x ${ZSH_PATINA_BINARY:-$commands[zsh-patina]} ]]; then
|
|
eval "$(${ZSH_PATINA_BINARY:-$commands[zsh-patina]} activate)"
|
|
else
|
|
echo '[oh-my-zsh] zsh-patina not found, please install it from https://github.com/michel-kraemer/zsh-patina'
|
|
fi
|