Skip to content

Commit

Permalink
zsh: replace the nvm plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
geodimm committed Jan 11, 2025
1 parent 2cb9a1a commit a499aef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion scripts/ohmyzsh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ declare -a ZSH_CUSTOM_PLUGINS=(
"plugins/zsh-autosuggestions=https://github.com/zsh-users/zsh-autosuggestions"
"plugins/zsh-completions=https://github.com/zsh-users/zsh-completions"
"plugins/you-should-use=https://github.com/MichaelAquilina/zsh-you-should-use"
"plugins/zsh-nvm=https://github.com/lukechilds/zsh-nvm"
"plugins/fzf-tab=https://github.com/Aloxaf/fzf-tab"
"plugins/zsh-kitty=https://github.com/redxtech/zsh-kitty"
)
Expand Down
3 changes: 1 addition & 2 deletions zsh/zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ fi

# NVM
export NVM_DIR="${HOME}/.nvm"
export NVM_LAZY_LOAD=true
export NVM_LAZY_LOAD_EXTRA_COMMANDS=('vim' 'nvim')
export NVM_HOMEBREW="$(brew --prefix nvm)"

# Append ~/bin directory to PATH
if [[ ! "${PATH}" == *${HOME}/bin* ]]; then
Expand Down
6 changes: 6 additions & 0 deletions zsh/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ plugins=(
httpie
kubectl
npm
nvm
terraform
vi-mode
you-should-use
Expand Down Expand Up @@ -133,6 +134,11 @@ zle -N kitty_scrollback_edit_command_line
bindkey '^x^e' kitty_scrollback_edit_command_line
bindkey -M vicmd ' ' kitty_scrollback_edit_command_line

# nvm {{{2

zstyle ':omz:plugins:nvm' lazy yes
zstyle ':omz:plugins:nvm' lazy-cmd vim nvim

# Other {{{2

# disable highlighting of pasted text
Expand Down

0 comments on commit a499aef

Please sign in to comment.