1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-02-13 05:59:46 +08:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Kiran Koirala
9af7ebcf36
fix(nvm): use command cat to avoid alias (#12410) 2024-05-10 12:08:35 +02:00
Kiran Koirala
b1af78d64d
fix(nvm): use nvm version when needed (#12409) 2024-05-10 09:27:47 +02:00
Atk
5947c3c3c9
feat(dependencies): add wd (#12405)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2024-05-09 16:57:30 +02:00
2 changed files with 10 additions and 2 deletions

View File

@ -36,3 +36,11 @@ dependencies:
precopy: | precopy: |
set -e set -e
find . ! -name _gradle ! -name LICENSE -delete find . ! -name _gradle ! -name LICENSE -delete
plugins/wd:
repo: mfaerevaag/wd
branch: master
version: tag:v0.6.0
precopy: |
set -e
rm -r test
rm install.sh tty.gif wd.1

View File

@ -50,11 +50,11 @@ function _omz_setup_autoload {
zstyle -t ':omz:plugins:nvm' silent-autoload && nvm_silent="--silent" zstyle -t ':omz:plugins:nvm' silent-autoload && nvm_silent="--silent"
if [[ -n "$nvmrc_path" ]]; then if [[ -n "$nvmrc_path" ]]; then
local nvmrc_node_version=$(nvm version $(cat "$nvmrc_path" | tr -dc '[:print:]')) local nvmrc_node_version=$(nvm version $(command cat "$nvmrc_path" | tr -dc '[:print:]'))
if [[ "$nvmrc_node_version" = "N/A" ]]; then if [[ "$nvmrc_node_version" = "N/A" ]]; then
nvm install nvm install
elif [[ "$nvmrc_node_version" != "$node_version" ]]; then elif [[ "$nvmrc_node_version" != "$(nvm version)" ]]; then
nvm use $nvm_silent nvm use $nvm_silent
fi fi
elif [[ -n "$(PWD=$OLDPWD nvm_find_nvmrc)" ]] && [[ "$(nvm version)" != "$(nvm version default)" ]]; then elif [[ -n "$(PWD=$OLDPWD nvm_find_nvmrc)" ]] && [[ "$(nvm version)" != "$(nvm version default)" ]]; then