Skip to content

Instantly share code, notes, and snippets.

@ctrombley
Last active May 10, 2022 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ctrombley/5f1563c4496f49960f02e53f59a3984e to your computer and use it in GitHub Desktop.
Save ctrombley/5f1563c4496f49960f02e53f59a3984e to your computer and use it in GitHub Desktop.
Dump environment info
echo "\n======\nOS\n======\n"
echo "MacOS Version:"
echo "$(sw_vers | sed 's/^/ /')"
echo "XCode Command Line Tools Version: $(pkgutil --pkg-info=com.apple.pkg.CLTools_Executables | grep version)"
echo "Homebrew Version:"
echo "$(brew --version | sed 's/^/ /')"
echo "\n======\nPYTHON\n======\n"
echo "pyenv version: $(pyenv --version)"
echo "pyenv location: $(pyenv --version)"
echo "Current VIRTUAL_ENV value: $VIRTUAL_ENV"
echo "python version: $(python --version)"
echo "python location: $(which python)"
echo "pip version: $(pip --version)"
echo "pip location: $(which pip)"
echo "poetry version: $(poetry --version)"
echo "poetry location: $(which poetry)"
echo "\n======\nNODE\n======\n"
echo "nvm version: $(nvm --version)"
echo "Current NVM_DIR value: $NVM_DIR"
echo "node version: $(node --version)"
echo "node location: $(which node)"
echo "yarn version: $(yarn --version)"
echo "yarn location: $(which yarn)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment