Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

vscode unable to resolve your shell environment

function load-nvm {
  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
  [[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh
}

# nvm
if [[ "x${TERM_PROGRAM}" = "xvscode" ]]; then 
  echo 'in vscode, nvm not work; use `load-nvm`';
else 
  load-nvm
fi
Comment

PREVIOUS NEXT
Code Example
Shell :: git preview pull 
Shell :: gpg sign git commit in gitlab ci 
Shell :: camtasia code linux terminal 
Shell :: killall kinsing 
Shell :: find directory inodes usage 
Shell :: Adding the daily DevCard to your GitHub profile 
Shell :: authorized by ssh without password 
Shell :: copy one file to several directories 
Shell :: filebeat config folder location in linux 
Shell :: Guardar cambios en una rama nueva 
Shell :: connect to host gitlab.com port 22: Connection refused deploy key 
Shell :: debian install udev 
Shell :: SCCM install update via command line 
Shell :: how to add user and password as alias in linux 
Shell :: DISABLE_DATABASE_ENVIRONMENT_CHECK=1 
Shell :: add group without logout 
Shell :: check latest secret version acess GCP 
Shell :: batch rename folders & trim spaces & add prefix / suffix 
Shell :: xampp has no control panel in linux 
Shell :: install opencv powershell cmake 
Shell :: albart for linux 
Shell :: remove ms store remove installed app 
Shell :: PoweShell PingSweep 
Shell :: Storm Breaker ModuleNotFoundError: No module named "pyngrok" 
Shell :: pdftk remove last page from pdf life 
Shell :: raspbian buster mit uv4l 
Shell :: membuat nomor urut 11 digit berdasarkan id primary key 
Shell :: caddy default tls folder 
Shell :: unstash specific file 
Shell :: import kleur 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =