1
mirror of https://github.com/jakejarvis/dotfiles.git synced 2026-01-12 16:32:54 -05:00

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

This commit is contained in:
2019-09-09 09:52:06 -04:00
parent 6d986a175d
commit 0a1e56de57
3 changed files with 19 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ unshort() {
}
# 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() {
if [ -z "${1}" ] || [ -z "${2}" ]; then
echo "Usage: \`gitio slug url\`"

View File

@@ -16,10 +16,26 @@ export PATH="/opt/metasploit-framework/bin:$PATH"
# curl
export PATH="/usr/local/opt/curl/bin:$PATH"
# Rust/Cargo
export PATH="$HOME/.cargo/bin:$PATH"
# ----- 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.
if [ -f '/Users/jake/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/jake/google-cloud-sdk/path.zsh.inc'; fi