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:
parent
6d986a175d
commit
0a1e56de57
2
Brewfile
2
Brewfile
@ -104,6 +104,7 @@ brew "heroku"
|
||||
brew "heroku-node"
|
||||
brew "hhvm"
|
||||
brew "htop"
|
||||
brew "httpie"
|
||||
brew "httrack"
|
||||
brew "hub"
|
||||
brew "hugo"
|
||||
@ -137,6 +138,7 @@ brew "pngcrush"
|
||||
brew "postgresql"
|
||||
brew "python"
|
||||
brew "python@2"
|
||||
brew "pyenv"
|
||||
brew "ruby"
|
||||
brew "ruby-build"
|
||||
brew "rbenv"
|
||||
|
@ -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\`"
|
||||
|
16
zsh/path.zsh
16
zsh/path.zsh
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user