1/17/2024 0 Comments Tmuxinator wiki![]() An example file can be seen in this section of the documentation. There are many configuration options available when using tmuxinator to generate a new project file. This gem allows for project specific YAML files to be created that not only allow for the configuration of the tmux windows and panes but also allow commands to be run in them on start up and shut down. Tmuxinator is a ruby gem that elevates using tmux for project development from a good experience to a fantastic experience. Going through the process of starting tmux, opening panes and windows and spinning up the processes I used frequently in their respective places was getting to be too much. I had moved to using Vim (now Neovim) in the terminal for all of my editing and at the time I was developing a couple of Rails projects. Now, spinning up a tmux session from scratch every time I wanted to work on something was fine if I was working on a remote server doing patches or troubleshooting an issue, but when developing locally it was starting to get a little tiresome. With the added ability to ssh into a server and reattach to the session it was an amazing experience. ![]() Spinning up a tmux session and having the ability to split screens for editing, running commands, tailing logs and more at the touch of a couple of keys was immensely empowering and changed the way that I used the terminal substantially. Out of the box the controls felt more intuitive and once the default leader key combination is switched from CTRL-b to something more sensible ( CTRL-s or CTRL-a) it is a joy to use. The configuration of tmux is what originally brought me to make the switch. ![]() The tmux project is a successor to screen that allows for easier configuration while containing most of the major features of Screen. I used Screen for a little while until I learned about tmux. You can also reattach to the screen session after logging back into the server. Screen allows for terminal multiplexing that is disconnected from the user’s session, useful for unreliable network connections as the running commands will not be terminated if the session is ended. I believe that these tools can help anyone that uses the terminal be more productive and, more importantly, happier. With the help of tmux and tmuxinator I have come up with a customizable, reproducible way to spin up a development environment with a lot less effort. Over the years I have moved to doing almost all of my development in the terminal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |