Browse Source

Adding RBENV

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

6
home/.zshrc

@ -42,3 +42,9 @@ export PATH="$PATH:$HOME/go/bin"
if [ -f "$HOME/.update_dotfiles.sh" ]; then if [ -f "$HOME/.update_dotfiles.sh" ]; then
/usr/bin/env sh $HOME/.update_dotfiles.sh /usr/bin/env sh $HOME/.update_dotfiles.sh
fi 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 # Configure .zshrc
link "$HOME" ".zshrc" "$DOTFILES_HOME/.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 # Configure .tmux.conf
link "$HOME" ".tmux.conf" "$DOTFILES_HOME/.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 copy $SYSTEMD_CONFIG_HOME $systemd_config_name $systemd_config true true
done 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 cd $GIT_DIR
# Create an auto updater for the dotfiles # Create an auto updater for the dotfiles

3
scripts/tools.sh

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

Loading…
Cancel
Save