moving to nodenv
This commit is contained in:
parent
b1259fc660
commit
27caabc1e8
@ -1,3 +1,4 @@
|
|||||||
.ssh
|
.ssh
|
||||||
.chef
|
.chef
|
||||||
.rbenv
|
.rbenv
|
||||||
|
.nodenv
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
cask_args appdir: '/Applications'
|
cask_args appdir: '/Applications'
|
||||||
# taps
|
# taps
|
||||||
tap 'homebrew/php'
|
tap 'homebrew/php'
|
||||||
|
tap 'nodenv/nodenv'
|
||||||
cask 'java'
|
cask 'java'
|
||||||
# brews
|
# brews
|
||||||
brew 'composer'
|
brew 'composer'
|
||||||
@ -19,7 +20,8 @@ brew 'mas'
|
|||||||
brew 'mongodb'
|
brew 'mongodb'
|
||||||
brew 'mr'
|
brew 'mr'
|
||||||
brew 'mtr'
|
brew 'mtr'
|
||||||
brew 'nvm'
|
brew 'nodenv'
|
||||||
|
brew 'nodenv-default-packages'
|
||||||
brew 'openssl'
|
brew 'openssl'
|
||||||
brew 'php-code-sniffer'
|
brew 'php-code-sniffer'
|
||||||
brew 'postgresql'
|
brew 'postgresql'
|
||||||
@ -77,7 +79,6 @@ mas 'Noizio', id: 928871589
|
|||||||
mas 'Pages', id: 409201541
|
mas 'Pages', id: 409201541
|
||||||
mas 'Pocket', id: 568494494
|
mas 'Pocket', id: 568494494
|
||||||
mas 'Simplify', id: 448003584
|
mas 'Simplify', id: 448003584
|
||||||
mas 'Spark', id: 1176895641
|
|
||||||
mas 'Todoist', id: 585829637
|
mas 'Todoist', id: 585829637
|
||||||
mas 'Twitter', id: 409789998
|
mas 'Twitter', id: 409789998
|
||||||
mas 'Xcode', id: 497799835
|
mas 'Xcode', id: 497799835
|
||||||
|
2
home/.nodenv/default-packages
Normal file
2
home/.nodenv/default-packages
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
coffeescript
|
||||||
|
yarn
|
@ -1,9 +1 @@
|
|||||||
# oh-my-zsh complains without a .zsh file in here
|
# oh-my-zsh complains without a .zsh file in here
|
||||||
|
|
||||||
autoload -U add-zsh-hook
|
|
||||||
load-nvmrc() {
|
|
||||||
if [[ -f .nvmrc && -r .nvmrc ]]; then
|
|
||||||
nvm use
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
add-zsh-hook chpwd load-nvmrc
|
|
||||||
|
@ -5,7 +5,7 @@ local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
|||||||
|
|
||||||
PROMPT='%{$fg[$HCOLOR]%}%m%{$reset_color%}:%c $(git_prompt_info)%{$fg[red]%}%(!.#.»)%{$reset_color%} '
|
PROMPT='%{$fg[$HCOLOR]%}%m%{$reset_color%}:%c $(git_prompt_info)%{$fg[red]%}%(!.#.»)%{$reset_color%} '
|
||||||
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
|
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
|
||||||
RPS1='%{$fg[cyan]%}(%{$fg[red]%}$(ruby_prompt_info) %{$fg[green]%}$(nvm current) %{$fg[blue]%}$(pyenv_prompt_info)%{$fg[cyan]%}) %{$reset_color%}${return_code}'
|
RPS1='%{$fg[cyan]%}(%{$fg[red]%}$(ruby_prompt_info) %{$fg[green]%}$(nodenv version-name) %{$fg[blue]%}$(pyenv_prompt_info)%{$fg[cyan]%}) %{$reset_color%}${return_code}'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}±%{$fg[yellow]%}"
|
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}±%{$fg[yellow]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
||||||
|
@ -26,7 +26,8 @@ plugins=($plugins ruby gem rbenv rails bundler heroku)
|
|||||||
export RBENV_ROOT=$HOME/.rbenv
|
export RBENV_ROOT=$HOME/.rbenv
|
||||||
|
|
||||||
# node
|
# node
|
||||||
plugins=($plugins nvm npm yarn)
|
plugins=($plugins npm yarn)
|
||||||
|
eval "$(nodenv init -)"
|
||||||
|
|
||||||
# python
|
# python
|
||||||
plugins=($plugins pyenv pip)
|
plugins=($plugins pyenv pip)
|
||||||
@ -46,12 +47,6 @@ esac
|
|||||||
|
|
||||||
UNBUNDLED_COMMANDS=(knife)
|
UNBUNDLED_COMMANDS=(knife)
|
||||||
|
|
||||||
# nvm from homebrew
|
|
||||||
if [ -f /usr/local/opt/nvm/nvm.sh ]; then
|
|
||||||
export NVM_DIR=$HOME/.nvm
|
|
||||||
source /usr/local/opt/nvm/nvm.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
# OH MY ZSH!
|
# OH MY ZSH!
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user