๐Ÿ“ฆ hyoban / spaceship-node-package-manager

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching
๐Ÿ“ฅ Clone https://github.com/hyoban/spaceship-node-package-manager.git
HTTPS git clone https://github.com/hyoban/spaceship-node-package-manager.git
SSH git clone git@github.com:hyoban/spaceship-node-package-manager.git
CLI gh repo clone hyoban/spaceship-node-package-manager
Stephen Zhou Stephen Zhou docs: update 5d2006b 1 years ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“„ README.md
๐Ÿ“„ README.md

๐Ÿ˜ + ๐Ÿš€
Spaceship Node Package Manager

A Node Package Manager section for Spaceship prompt

Installing

You need to source this plugin somewhere in your dotfiles. Here's how to do it with some popular tools:

[Oh-My-Zsh]

Execute this command to clone this repo into Oh-My-Zsh plugin's folder:

git clone https://github.com/hyoban/spaceship-node-package-manager.git $ZSH_CUSTOM/plugins/spaceship-node-package-manager

Include spaceship-node-package-manager in Oh-My-Zsh plugins list:

plugins=($plugins spaceship-node-package-manager)

[zplug]

zplug "spaceship-prompt/spaceship-node-package-manager"

[antigen]

antigen bundle "spaceship-prompt/spaceship-node-package-manager"

[antibody]

antibody bundle "spaceship-prompt/spaceship-node-package-manager"

[zinit]

zinit light "spaceship-prompt/spaceship-node-package-manager"

[zgen]

zgen load "spaceship-prompt/spaceship-node-package-manager"

[sheldon]

[plugins.spaceship-node-package-manager]
github = "spaceship-prompt/spaceship-node-package-manager"

Manual

If none of the above methods works for you, you can install Spaceship manually.

  • Clone this repo somewhere, for example to $HOME/.zsh/spaceship-node-package-manager.
  • Source this section in your ~/.zshrc.

Example

mkdir -p "$HOME/.zsh"
git clone --depth=1 https://github.com/hyoban/spaceship-node-package-manager.git "$HOME/.zsh/spaceship-node-package-manager"

For initializing prompt system add this to your .zshrc:

``zsh title=".zshrc" source "~/.zsh/spaceship-node-package-manager/spaceship-node-package-manager.plugin.zsh" %%CODEBLOCK9%%zsh spaceship add node_package_manager --before exec_time ``