"set up node version manager(nvm)"

This commit is contained in:
tomit4 2022-06-12 09:28:17 -07:00
parent fb83167174
commit 010bc31545
3 changed files with 16 additions and 2 deletions

View file

@ -193,3 +193,11 @@ source /home/brian/.bash_completions/typer.sh
# Use bash-completion, if available
[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \
source /usr/share/bash-completion/bash_completion
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# Sets Up Node Version Manager
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

View file

@ -14,7 +14,9 @@ add notation about using pick to parse through output, and pipe that using xargs
example:
ls | pick | xargs bat # will give you a choice of the files from ls, pick displays a menu to "pick" the file, which then is parsed to xargs bat (invokes bat on choice from ls | pick)
Install arandr (tool for multi-monitor setup, you'll need this eventually).
Install nvm
doas pacman -S arandr
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
and copy the zshrc and bashrc files which create the environment variable for nvm

View file

@ -134,3 +134,7 @@ alias home="xclear && cd /home/brian && clear && history -p && hash -r"
source ~/.aliases
# Plugins (that need to be at the end of the zshrc script)
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh
# Sets Up Node Version Manager
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm