1
mirror of https://github.com/jakejarvis/dotfiles.git synced 2025-04-26 03:45:21 -04:00

re-add pyenv, rbenv, and nvm (lazy-loaded b/c it's PAINFULLY SLOW)

This commit is contained in:
Jake Jarvis 2019-09-09 09:52:06 -04:00
parent 6d986a175d
commit 0a1e56de57
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
3 changed files with 19 additions and 1 deletions

View File

@ -104,6 +104,7 @@ brew "heroku"
brew "heroku-node" brew "heroku-node"
brew "hhvm" brew "hhvm"
brew "htop" brew "htop"
brew "httpie"
brew "httrack" brew "httrack"
brew "hub" brew "hub"
brew "hugo" brew "hugo"
@ -137,6 +138,7 @@ brew "pngcrush"
brew "postgresql" brew "postgresql"
brew "python" brew "python"
brew "python@2" brew "python@2"
brew "pyenv"
brew "ruby" brew "ruby"
brew "ruby-build" brew "ruby-build"
brew "rbenv" brew "rbenv"

View File

@ -46,7 +46,7 @@ unshort() {
} }
# Create a custom git.io short URL (if available) # Create a custom git.io short URL (if available)
# ex: gitio dotfiles https://github.com/jakejarvis/dotfiles => https://git.io/dotfiles # ex: gitio jakesdotfiles https://github.com/jakejarvis/dotfiles => https://git.io/jakesdotfiles
gitio() { gitio() {
if [ -z "${1}" ] || [ -z "${2}" ]; then if [ -z "${1}" ] || [ -z "${2}" ]; then
echo "Usage: \`gitio slug url\`" echo "Usage: \`gitio slug url\`"

View File

@ -16,10 +16,26 @@ export PATH="/opt/metasploit-framework/bin:$PATH"
# curl # curl
export PATH="/usr/local/opt/curl/bin:$PATH" export PATH="/usr/local/opt/curl/bin:$PATH"
# Rust/Cargo
export PATH="$HOME/.cargo/bin:$PATH"
# ----- Third-party additions below: ----- # ----- Third-party additions below: -----
# pyenv
eval "$(pyenv init -)"
# rbenv
eval "$(rbenv init -)"
# 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
# This is SOOOOOOOO SLOW.... lazy-load nvm instead with `usenvm`:
alias usenvm='[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh"; [ -s "/usr/local/opt/nvm/etc/bash_completion" ] && . "/usr/local/opt/nvm/etc/bash_completion"'
# The next line updates PATH for the Google Cloud SDK. # The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/jake/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/jake/google-cloud-sdk/path.zsh.inc'; fi if [ -f '/Users/jake/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/jake/google-cloud-sdk/path.zsh.inc'; fi