From 35588686feb2af7f9ef7eaf1d51511706bd318ff Mon Sep 17 00:00:00 2001 From: Sebastian Bugge Date: Wed, 24 May 2023 19:56:17 +0200 Subject: [PATCH] add nvm to .profile --- .profile | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.profile b/.profile index 39d71d9..c24de1a 100644 --- a/.profile +++ b/.profile @@ -1,20 +1,22 @@ # set PATH so it includes user's private bin if it exists -if [ -d "$HOME/bin" ] ; then - PATH="$HOME/bin:$PATH" +if [ -d "$HOME/bin" ]; then + PATH="$HOME/bin:$PATH" fi # set PATH so it includes user's private bin if it exists -if [ -d "$HOME/.local/bin" ] ; then - PATH="$HOME/.local/bin:$PATH" +if [ -d "$HOME/.local/bin" ]; then + PATH="$HOME/.local/bin:$PATH" fi -if [ -d "$HOME/.cargo" ] ; then - . "$HOME/.cargo/env" +if [ -d "$HOME/.cargo/env" ]; then + . "$HOME/.cargo/env" fi -if [ -d "$HOME/go" ] ; then - GOPATH="$HOME/go" +if [ -d "$HOME/go" ]; then + GOPATH="$HOME/go" fi export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +if [ -d "$NVM_DIR/nvm.sh" ]; then + \. "$NVM_DIR/nvm.sh" # This loads nvm +fi