For example, to display a message, you can use tmux's display-message command. Tmux has a set of commands that you can run from the terminal inside a tmux session. I hope that you will be able to start your tmux journey at a better place than I did: understanding what you put into your config file instead of copy-pasting anything that remotely look interesting without knowing what it really does. I also make sure that I understood the ones that I keep. Now that I'm older and wiser (am I? :D), I have deleted the configs that I don't need. When I started using tmux a few years ago, I copied + pasted much of my tmux config from random sites I found from the internet. I remember the times I was staring at a blank MS Word when having to write a report or a blank Strathmore Paper when having to draw a scene - it can be intimidating having to fill up your config file from a blank slate. The possibilities are endless.Įndless possibility is not always a good thing. So what can you put inside the tmux config file? Anything. It is a path to a file where you enter your own configurations so next time you launch tmux, it executes everything inside that config file. nf in the HOME path ~/.nf (technically tmux looks for /etc/nf first, then ~/.nf, but the former is best left untouched).Ī. When you start a tmux session, tmux looks for a file named. To do this, we need to configure the tmux config file. It would be nice to be able to change some of the default configs into something that are more intuitive to me, the user. There is nothing about " and % that are associable to horizontal / vertical splits. I also found commands like the split commands Prefix + " and Prefix + % are not intuitive. The letter b is positioned at a weird distance from the ctrl button. For example, I never understood why tmux uses Ctrl + b as a prefix. When you start using tmux, you may think that some of tmux's keys are not intuitive or straight-up uncomfortable to reach. It is highly recommended that you either read my previous article or are already familiar with how tmux works. No, tmux can't do your chores or make your wildest dreams come true, but tmux probably can make your wildest terminal multiplexing dreams come true :D. Whenever you thinking "Can Tmux can do that?" when reading this article, the answer is, 90% of the time, "Yes, tmux can do that!". Here you will learn useful tmux shortcuts you might not even know exist. My hope is that by exposing a list of my personal tmux configurations and my reasoning behind them, you will see a general pattern and understand it enough to make tmux your own. Here you'll learn some configurations that I use. However, in that article, I didn't cover much how to customize tmux. In the previous article, you learned how to use tmux: what tmux is, how to manage multiple terminals, and how to use tmux's powerful features. This article is part 2 of my tmux series. Configuring Your Tmux to Be Even More Awesome
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |