Minimal (node.js + git) theme for oh-my-zsh.
- Clone the repo
- Place the
promptblocks.zsh-themefile in your$ZSH_CUSTOM/themesdirectory - In your
~/.zshrcfile:ZSH_THEME="promptblocks" - Reload zsh:
source ~/.zshrc
If you are using a Node.js version manager, like nvm, node version in the prompt won't be updated when you switch.
In order to achieve this, you can create a custom function in your ~/.zshrc file that will source your zsh config every time you change Node version*.
If using nvm, this function can look like this:
function nv () { nvm use $1 && source ~/.zshrc }Now, you can use your new nv command to switch Node version and reload prompt:
nv 20- Depending on your configuration, this will be more or less slower that using the version manager directly

