convert to asdf !

This commit is contained in:
James Walker 2018-10-21 23:08:33 -04:00
parent 4f20b644e8
commit 3a15fb6cb3
Signed by: walkah
GPG Key ID: 3C127179D6086E93
7 changed files with 15 additions and 40 deletions

View File

@ -7,13 +7,11 @@ tap 'jawshooah/pyenv'
tap 'nodenv/nodenv'
cask 'java'
# brews
brew 'asdf'
brew 'autojump'
brew 'awscli'
brew 'composer'
brew 'dnsmasq'
brew 'elixir'
brew 'exercism'
brew 'flake8'
brew 'git'
brew 'gsl'
brew 'heroku'
@ -24,18 +22,10 @@ brew 'mas'
brew 'mongodb'
brew 'mr'
brew 'mtr'
brew 'nodenv'
brew 'nodenv-default-packages'
brew 'openssl'
brew 'php-code-sniffer'
brew 'postgresql'
brew 'pwgen'
brew 'pyenv'
brew "pyenv-default-packages", args: ["HEAD"]
brew 'rbenv'
brew 'rbenv-default-gems'
brew 'reattach-to-user-namespace'
brew 'rust'
brew 'ssh-copy-id'
brew 'tmux'
brew 'wget'

View File

@ -4,6 +4,7 @@ engine = dropbox
directory = Config
[applications_to_sync]
asdf
atom
aws
chef

View File

@ -3,9 +3,13 @@
if [ -z $SSH_CONNECTION ]; then HCOLOR="green"; else HCOLOR="blue"; fi
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
function asdf_prompt() {
echo $(asdf current $1|awk '{print $1}')
}
PROMPT='%{$fg[$HCOLOR]%}%m%{$reset_color%}:%c $(git_prompt_info)%{$fg[red]%}%(!.#.»)%{$reset_color%} '
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
RPS1='%{$fg[cyan]%}(%{$fg[red]%}$(ruby_prompt_info) %{$fg[green]%}$(nodenv_prompt_info) %{$fg[blue]%}$(pyenv_prompt_info)%{$fg[cyan]%}) %{$reset_color%}${return_code}'
RPS1='%{$fg[cyan]%}(%{$fg[red]%}$(asdf_prompt ruby) %{$fg[green]%}$(asdf_prompt nodejs) %{$fg[blue]%}$(asdf_prompt python)%{$fg[cyan]%}) %{$reset_color%}${return_code}'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}±%{$fg[yellow]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "

View File

@ -19,19 +19,16 @@ export ZSH_CUSTOM=$HOME/.zsh/custom
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(autojump aws extract command-not-found tmux tmuxinator git github git-flow ssh-agent golang vagrant knife docker docker-compose mix mix-fast)
plugins=(asdf autojump aws extract command-not-found tmux tmuxinator git github git-flow ssh-agent golang vagrant knife docker docker-compose mix mix-fast)
# ruby
plugins=($plugins ruby gem rbenv rails bundler heroku)
export RBENV_ROOT=$HOME/.rbenv
plugins=($plugins ruby gem rails bundler heroku)
# node
plugins=($plugins nodenv npm yarn)
export NODENV_ROOT=$HOME/.nodenv
plugins=($plugins npm yarn)
# python
plugins=($plugins pyenv pip)
export PYENV_ROOT=$HOME/.pyenv
plugins=($plugins pip)
# php / drupal
plugins=($plugins drush composer)

View File

@ -15,27 +15,10 @@ brew bundle --global
brew upgrade
brew cleanup
# update ruby + gems
LATEST_RUBY=$(rbenv install -l | grep -v - | awk '{print $1}'| tail -1)
if [ $LATEST_RUBY != $(rbenv global) ]; then
rbenv install $LATEST_RUBY
rbenv global $LATEST_RUBY
fi
gem update
# update latest node
LATEST_NODE=$(nodenv install -l |grep -v - |awk '{print $1}'|egrep '[0-9]+\.[0-9]+\.[0-9]+'|sort -V|tail -1)
if [ $LATEST_NODE != $(nodenv global) ]; then
nodenv install $LATEST_NODE
nodenv global $LATEST_NODE
fi
# update python
LATEST_PYTHON=$(pyenv install -l | grep -v - | awk '{print $1}'|egrep '^2'| tail -1)
if [ $LATEST_PYTHON != $(pyenv global) ]; then
pyenv install $LATEST_PYTHON
pyenv global $LATEST_PYTHON
fi
# asdf
asdf update
asdf plugin-update --all
asdf install
# update all repositories
mr -j 5 update