Last active
May 25, 2019 16:47
-
-
Save nicerobot/9ce9c1f350eb9acc3eefd5a0bfc2c379 to your computer and use it in GitHub Desktop.
Update tmuxinator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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