![]() ![]() To use it, start tmux and create panes with the things you want running in them. Tmuxinator is a launcher for tmux that allows you to specify and manage layouts and autostart applications with a YAML file. Now I'll set it up to launch the apps I want in a way that makes sense and without having to reposition and resize them every time. So far, I've only made some simple changes to functionality and visual display and added mouse support. When you exit the editor, tmux will reload the configuration without reloading anything else. Opening a new window is still Ctrl+ b+ n, and you can now click on the window name on the bottom bar to switch between them. ![]() With mouse mode turned on, you can click to switch between the panes and drag the dividers to resize them. Splitting panes horizontally (top/bottom) is now Ctrl+ b+ - and vertically is now Ctrl+ b+ _. Ctrl+ b is still the "leader" key for entering commands, but some others have changed. Now, when tmux starts up, the status bar at the bottom provides a bit more information-and in exciting colors. You'll also note that I turn on operating system clipboard support and mouse support. I use Hack Nerd Font for almost everything console-related since it is easy for me to read and has many, many useful extra symbols. Note that you do not need to have Powerline installed-you just need a font that supports the Powerline symbols. Tmux_conf_theme_right_separator_sub='\uE0B3' Tmux_conf_theme_left_separator_sub='\uE0B1' Tmux_conf_theme_left_separator_main='\uE0B0' Tmux_conf_theme_focused_pane_bg='default' This snippet shows only the things I changed: tmux_conf_theme_24b_colour=true For example, I changed the default colors a bit and turned on the Powerline dividers. file contains local settings and overrides. Now, clone the Oh My Tmux project with Git. Move it to another directory, like ~/tmp. The configuration file for tmux is ~/.nf. But you can do so much work with tmux.įirst things first-if you have an existing tmux configuration file, back it up. Most people use tmux for very basic functions, such as opening it on a remote server then starting a process, maybe opening a second session to watch log files or debug information, then disconnecting and coming back later. And the primary tool I'm going to use for that is tmux. I can SSH into one of my personal machines and run the same setup on my work machine as I use on my personal one. Why the command line? Simply put, working at the command line allows me to access a lot of these tools and functions from anywhere I can run SSH. Starting today, I'll put them together into comprehensive setups to streamline things. In this series so far, I've written about individual apps and tools. Free online course: RHEL Technical Overview. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |