Skip to content

Instantly share code, notes, and snippets.

@nicerobot
Last active May 25, 2019 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicerobot/9ce9c1f350eb9acc3eefd5a0bfc2c379 to your computer and use it in GitHub Desktop.
Save nicerobot/9ce9c1f350eb9acc3eefd5a0bfc2c379 to your computer and use it in GitHub Desktop.
Update tmuxinator
#!/usr/bin/env bash
# This tries to make sure that tmuxinator is always installed into local GEM_PATHS
gems=$(cd $(dirname $(readlink ${0} || echo .)) >/dev/null 2>&1; pwd -P)
mkdir -p ${gems}
cd ${gems}
gem install --user-install tmuxinator
[[ -L .latest ]] && rm ./.latest
install_dir=$(gem env | awk '/USER INSTALLATION DIRECTORY/ {print $NF}')
ln -s ${install_dir#${gems}/} .latest
[[ -L bin ]] || ln -s .latest/bin
[[ -L bin ]] && rm tmuxinator.zsh
ln -s .latest/gems/tmuxinator-*/completion/tmuxinator.zsh .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment