env tweaks
This commit is contained in:
parent
a11da93d54
commit
b1259fc660
@ -1,2 +1,3 @@
|
|||||||
.ssh
|
.ssh
|
||||||
.chef
|
.chef
|
||||||
|
.rbenv
|
||||||
|
@ -26,6 +26,7 @@ brew 'postgresql'
|
|||||||
brew 'pwgen'
|
brew 'pwgen'
|
||||||
brew 'pyenv'
|
brew 'pyenv'
|
||||||
brew 'rbenv'
|
brew 'rbenv'
|
||||||
|
brew 'rbenv-default-gems'
|
||||||
brew 'reattach-to-user-namespace'
|
brew 'reattach-to-user-namespace'
|
||||||
brew 'ssh-copy-id'
|
brew 'ssh-copy-id'
|
||||||
brew 'tmux'
|
brew 'tmux'
|
||||||
|
5
home/.rbenv/default-gems
Normal file
5
home/.rbenv/default-gems
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
bundler
|
||||||
|
jekyll
|
||||||
|
homesick
|
||||||
|
rails
|
||||||
|
tmuxinator
|
@ -3,10 +3,9 @@
|
|||||||
if [ -z $SSH_CONNECTION ]; then HCOLOR="green"; else HCOLOR="blue"; fi
|
if [ -z $SSH_CONNECTION ]; then HCOLOR="green"; else HCOLOR="blue"; fi
|
||||||
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
||||||
|
|
||||||
PROMPT='%{$fg[$HCOLOR]%}%m%{$reset_color%}:%c \
|
PROMPT='%{$fg[$HCOLOR]%}%m%{$reset_color%}:%c $(git_prompt_info)%{$fg[red]%}%(!.#.»)%{$reset_color%} '
|
||||||
$(git_prompt_info)%{$fg[red]%}%(!.#.»)%{$reset_color%} '
|
|
||||||
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
|
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
|
||||||
RPS1='%{$fg[cyan]%}(ruby-$(ruby_prompt_info)/node-$(nvm_prompt_info)) %{$reset_color%}${return_code}'
|
RPS1='%{$fg[cyan]%}(%{$fg[red]%}$(ruby_prompt_info) %{$fg[green]%}$(nvm current) %{$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%} "
|
||||||
|
@ -23,6 +23,7 @@ plugins=(extract command-not-found tmux tmuxinator git github git-flow ssh-agent
|
|||||||
|
|
||||||
# ruby
|
# ruby
|
||||||
plugins=($plugins ruby gem rbenv rails bundler heroku)
|
plugins=($plugins ruby gem rbenv rails bundler heroku)
|
||||||
|
export RBENV_ROOT=$HOME/.rbenv
|
||||||
|
|
||||||
# node
|
# node
|
||||||
plugins=($plugins nvm npm yarn)
|
plugins=($plugins nvm npm yarn)
|
||||||
@ -47,6 +48,7 @@ UNBUNDLED_COMMANDS=(knife)
|
|||||||
|
|
||||||
# nvm from homebrew
|
# nvm from homebrew
|
||||||
if [ -f /usr/local/opt/nvm/nvm.sh ]; then
|
if [ -f /usr/local/opt/nvm/nvm.sh ]; then
|
||||||
|
export NVM_DIR=$HOME/.nvm
|
||||||
source /usr/local/opt/nvm/nvm.sh
|
source /usr/local/opt/nvm/nvm.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user