From 902f45d905d10258c108c3bc648c0c31659f6211 Mon Sep 17 00:00:00 2001 From: "m.malkin" Date: Sat, 24 Sep 2016 01:40:41 +0300 Subject: [PATCH] updated --- install/install.sh | 19 +++++++++++++------ zshrc | 3 +-- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/install/install.sh b/install/install.sh index ed4a77d..afad139 100755 --- a/install/install.sh +++ b/install/install.sh @@ -8,22 +8,29 @@ brew tap Homebrew/bundle # oh-my-zsh sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" +[ -f ~/.zshrc.pre-oh-my-zsh ] && cat ~/.zshrc.pre-oh-my-zsh >> ~/.zsh_local + # vim git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim vim +PluginInstall +qall +# link dotfiles +rcup -U .oh-my-zsh/custom/plugins/pj -U scripts -U bin -x install + # rbenv RBENV_PATH=~/.rbenv +export PATH=$RBENV_PATH/bin:$PATH git clone https://github.com/sstephenson/rbenv.git $RBENV_PATH git clone https://github.com/sstephenson/ruby-build.git $RBENV_PATH/plugins/ruby-build -$RBENV_PATH/bin/rbenv install 2.3.1 -$RBENV_PATH/bin/rbenv global 2.3.1 -$RBENV_PATH/bin/gem install bundler pry awesome_print +eval "$(rbenv init -)" -# link dotfiles -rcup -U .oh-my-zsh/custom/plugins/pj -U scripts -U bin -x install +rbenv install 2.3.1 +rbenv global 2.3.1 +gem install bundler pry awesome_print # .zsh_local -echo 'export PROJECTS=$HOME/projects' > ~/.zsh_local \ No newline at end of file +mkdir -p $HOME/projects +echo 'export PROJECTS=$HOME/projects' >> ~/.zsh_local + diff --git a/zshrc b/zshrc index 4d46138..b2ef9f5 100644 --- a/zshrc +++ b/zshrc @@ -80,7 +80,6 @@ export FZF_CTRL_T_COMMAND="command find -L . \\( -path './\\.*' -o -fstype 'dev' -o -type d -print \ -o -type l -print 2> /dev/null | sed 1d | cut -b3-" -[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh - source ~/.zsh_local +[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh