mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-12 01:52:31 +01:00
Node plugin completely revamped. Added aliases.
This commit is contained in:
parent
3b1699b595
commit
66ac7ff0c2
2 changed files with 44 additions and 7 deletions
|
|
@ -4,3 +4,20 @@ function node-docs {
|
|||
local section=${1:-all}
|
||||
open_command "https://nodejs.org/docs/$(node --version)/api/$section.html"
|
||||
}
|
||||
|
||||
# initialise node
|
||||
alias nd='node'
|
||||
|
||||
# Checkout the README.md for
|
||||
# detailed explanation
|
||||
alias ndv='node --version'
|
||||
alias ndc='node -c'
|
||||
alias nde='node -e'
|
||||
alias ndh='node -h'
|
||||
alias ndi='node -i'
|
||||
alias ndr='node -r'
|
||||
|
||||
alias ndnd='node --no-depreciation'
|
||||
alias ndnw='node --no-warnings'
|
||||
alias ndtw='node --trace-warnings'
|
||||
alias ndv8='node --V8-options'
|
||||
Loading…
Add table
Add a link
Reference in a new issue