mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-27 03:05:39 +01:00
Reverted to ed0c5b6875
This commit is contained in:
parent
1b3f4c1cd6
commit
3e75e91d1e
5 changed files with 10 additions and 37 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,6 +1,9 @@
|
||||||
locals.zsh
|
locals.zsh
|
||||||
log/.zsh_history
|
log/.zsh_history
|
||||||
projects.zsh
|
projects.zsh
|
||||||
|
custom
|
||||||
|
!custom/plugins/example
|
||||||
|
!custom/example.zsh
|
||||||
*.swp
|
*.swp
|
||||||
!custom/example.zshcache
|
!custom/example.zshcache
|
||||||
cache/
|
cache/
|
||||||
|
|
|
||||||
5
custom/example.zsh
Normal file
5
custom/example.zsh
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
# Add yourself some shortcuts to projects you often work on
|
||||||
|
# Example:
|
||||||
|
#
|
||||||
|
# brainstormr=/Users/robbyrussell/Projects/development/planetargon/brainstormr
|
||||||
|
#
|
||||||
2
custom/plugins/example/example.plugin.zsh
Normal file
2
custom/plugins/example/example.plugin.zsh
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Add your own custom plugins in the custom/plugins directory. Plugins placed
|
||||||
|
# here will override ones with the same name in the main plugins directory.
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
#compdef nvm
|
|
||||||
#autoload
|
|
||||||
|
|
||||||
[[ -s ~/.nvm/nvm.sh ]] || return 0
|
|
||||||
|
|
||||||
local -a _1st_arguments
|
|
||||||
_1st_arguments=(
|
|
||||||
'help:show help'
|
|
||||||
'install:download and install a version'
|
|
||||||
'uninstall:uninstall a version'
|
|
||||||
'use:modify PATH to use version'
|
|
||||||
'run:run version with given arguments'
|
|
||||||
'ls:list installed versions or versions matching a given description'
|
|
||||||
'ls-remote:list remote versions available for install'
|
|
||||||
'deactivate:undo effects of NVM on current shell'
|
|
||||||
'alias:show or set aliases'
|
|
||||||
'unalias:deletes an alias'
|
|
||||||
'copy-packages:install global NPM packages to current version'
|
|
||||||
)
|
|
||||||
|
|
||||||
_arguments -C '*:: :->subcmds' && return 0
|
|
||||||
|
|
||||||
if (( CURRENT == 1 )); then
|
|
||||||
_describe -t commands "nvm subcommand" _1st_arguments
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
# The addition 'nvm install' attempts in ~/.profile
|
|
||||||
|
|
||||||
if [ -s ~/.nvm/nvm.sh ]; then
|
|
||||||
. $HOME/.nvm/nvm.sh
|
|
||||||
|
|
||||||
# Check if the NODE_VERSION environment variable is set,
|
|
||||||
# if so trigger nvm to use this.
|
|
||||||
if [[ $NODE_VERSION != "" ]]; then
|
|
||||||
nvm use $NODE_VERSION > /dev/null
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue