oh snap...tmuxinator
This is a short guide on the simplest way I have found how to install tmuxinator, which is used to create and manage tmux sessions.
terms:
bin(s): binary or binaries
dir(s): directory or directories
- Install ruby through a snap:
sudo snap install ruby --classic
- Install tmuxinator:
gem install tmuxinator
- Put the bin wherever you want to, it should be located in:
~/.gem/bin/tmuxinator
Normally, for the last step, since everything has been relative for my user I normally place the tmuxinator bin relative to my user as well. So, I normally do the following:
- create a local bin directory:
mkdir -p ~/.local/bin
- Create a soft link between the ruby bin directory and my local bin directory like so:
ln -s ~/.gem/bin/tmuxinator ~/.local/bin
.
NOTE: make sure you have the local bin directory in your $PATH
variable. i.e. adding this to your .zshrc or .bashrc:export PATH=$PATH:~/.local/bin
If you don't, you won't be able to execute the tmuxinator binary.