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

View File

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

View File

@ -3,9 +3,13 @@
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%})"
function asdf_prompt() {
echo $(asdf current $1|awk '{print $1}')
}
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]%}$(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_PREFIX="%{$fg[green]%}±%{$fg[yellow]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " 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/*) # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Example format: plugins=(rails git textmate ruby lighthouse) # 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 # ruby
plugins=($plugins ruby gem rbenv rails bundler heroku) plugins=($plugins ruby gem rails bundler heroku)
export RBENV_ROOT=$HOME/.rbenv
# node # node
plugins=($plugins nodenv npm yarn) plugins=($plugins npm yarn)
export NODENV_ROOT=$HOME/.nodenv
# python # python
plugins=($plugins pyenv pip) plugins=($plugins pip)
export PYENV_ROOT=$HOME/.pyenv
# php / drupal # php / drupal
plugins=($plugins drush composer) plugins=($plugins drush composer)

View File

@ -15,27 +15,10 @@ brew bundle --global
brew upgrade brew upgrade
brew cleanup brew cleanup
# update ruby + gems # asdf
LATEST_RUBY=$(rbenv install -l | grep -v - | awk '{print $1}'| tail -1) asdf update
if [ $LATEST_RUBY != $(rbenv global) ]; then asdf plugin-update --all
rbenv install $LATEST_RUBY asdf install
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
# update all repositories # update all repositories
mr -j 5 update mr -j 5 update