Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
4ba17232
Unverified
Commit
4ba17232
authored
Jun 20, 2023
by
Carlo Sala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(nvm)!: remove soft-deprecated code
BREAKING CHANGE: $NVM_LAZY, $NVM_LAZY_CMD, AND $NVM_AUTOLOAD cannot be used anymore to tweak nvm plugin. Use zstyle-based configurations instead.
parent
8ace453f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
nvm.plugin.zsh
plugins/nvm/nvm.plugin.zsh
+0
-23
No files found.
plugins/nvm/nvm.plugin.zsh
View file @
4ba17232
...
@@ -16,29 +16,6 @@ fi
...
@@ -16,29 +16,6 @@ fi
# Note: nvm is a function so we need to use `which`
# Note: nvm is a function so we need to use `which`
which nvm &>/dev/null
&&
return
which nvm &>/dev/null
&&
return
# TODO: 2022-11-11: Remove soft-deprecate options
if
((
${
+NVM_LAZY
}
+
${
+NVM_LAZY_CMD
}
+
${
+NVM_AUTOLOAD
}
))
;
then
# Get list of NVM_* variable settings defined
local
-a
used_vars
used_vars
=(
${
(o)parameters[(I)NVM_(AUTOLOAD|LAZY|LAZY_CMD)]
}
)
# Nicely print the list in the style `var1, var2 and var3`
echo
"
${
fg
[yellow]
}
[nvm plugin] Variable-style settings are deprecated. Instead of
${
(j
:,
:
)used_vars[1,-2]
}${
used_vars
[-2]+ and
}${
used_vars
[-1]
}
, use:
\n
"
if
((
$+
NVM_AUTOLOAD
))
;
then
echo
" zstyle ':omz:plugins:nvm' autoload yes"
zstyle
':omz:plugins:nvm'
autoload
yes
fi
if
((
$+
NVM_LAZY
))
;
then
echo
" zstyle ':omz:plugins:nvm' lazy yes"
zstyle
':omz:plugins:nvm'
lazy
yes
fi
if
((
$+
NVM_LAZY_CMD
))
;
then
echo
" zstyle ':omz:plugins:nvm' lazy-cmd
$NVM_LAZY_CMD
"
zstyle
':omz:plugins:nvm'
lazy-cmd
$NVM_LAZY_CMD
fi
echo
"
$reset_color
"
unset
used_vars NVM_AUTOLOAD NVM_LAZY NVM_LAZY_CMD
fi
if
zstyle
-t
':omz:plugins:nvm'
lazy
;
then
if
zstyle
-t
':omz:plugins:nvm'
lazy
;
then
# Call nvm when first using nvm, node, npm, pnpm, yarn or other commands in lazy-cmd
# Call nvm when first using nvm, node, npm, pnpm, yarn or other commands in lazy-cmd
zstyle
-a
':omz:plugins:nvm'
lazy-cmd nvm_lazy_cmd
zstyle
-a
':omz:plugins:nvm'
lazy-cmd nvm_lazy_cmd
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment