Browse Source

Adding RBENV

master
Drew Short 9 years ago
parent
commit
ca51d518dc
  1. 6
      home/.zshrc
  2. 12
      scripts/bootstrap.sh
  3. 5
      scripts/tools.sh

6
home/.zshrc

@ -42,3 +42,9 @@ export PATH="$PATH:$HOME/go/bin"
if [ -f "$HOME/.update_dotfiles.sh" ]; then
/usr/bin/env sh $HOME/.update_dotfiles.sh
fi
# rbenv setup
if [ -d "$HOME/.rbenv" ]; then
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
fi

12
scripts/bootstrap.sh

@ -95,9 +95,9 @@ link "$HOME" ".gitconfig" "$DOTFILES_HOME/.gitconfig"
# Configure .zshrc
link "$HOME" ".zshrc" "$DOTFILES_HOME/.zshrc"
clone_git_repo $HOME/.tmux/plugins/tpm https://github.com/tmux-plugins/tpm.git
clone_git_repo $HOME/.tmux/plugins/tmux-sensible https://github.com/tmux-plugins/tmux-sensible.git
clone_git_repo $HOME/.tmux/plugins/tmux-resurrect https://github.com/tmux-plugins/tmux-resurrect.git
clone_or_update_git_repo $HOME/.tmux/plugins/tpm https://github.com/tmux-plugins/tpm.git
clone_or_update_git_repo $HOME/.tmux/plugins/tmux-sensible https://github.com/tmux-plugins/tmux-sensible.git
clone_or_update_git_repo $HOME/.tmux/plugins/tmux-resurrect https://github.com/tmux-plugins/tmux-resurrect.git
# Configure .tmux.conf
link "$HOME" ".tmux.conf" "$DOTFILES_HOME/.tmux.conf"
@ -118,6 +118,12 @@ for systemd_config in ${systemd_configs[@]}; do
copy $SYSTEMD_CONFIG_HOME $systemd_config_name $systemd_config true true
done
# Install/update rbenv and plugins
clone_or_update_git_repo $HOME/.rbenv https://github.com/sstephenson/rbenv.git
clone_or_update_git_repo $HOME/.rbenv/plugins/ruby-build https://github.com/sstephenson/ruby-build.git
# <-- EDIT/ADD ABOVE THIS
# This should be the Last section
cd $GIT_DIR
# Create an auto updater for the dotfiles

5
scripts/tools.sh

@ -83,8 +83,9 @@ escape_path() {
echo $safe
}
# Clone a git repository into a location
clone_git_repo() {
# Clone a git repository into a location
# Or update an existing repository
clone_or_update_git_repo() {
local target=$1
local repo=$2
if [ ! -d "$target" ]; then

Loading…
Cancel
Save