官术网_书友最值得收藏!

  • Getting Started with tmux
  • Victor Quinn J.D.
  • 271字
  • 2021-08-05 17:56:36

Chapter 2. Configuring tmux

Now that we've had our first taste of tmux, let's dig into our first topic in greater detail. tmux is a very powerful program and thankfully one that is also highly configurable. You can change almost anything about its behavior, from the way it looks and feels to the commands it executes on load; you can even configure every key combination to which tmux responds.

In this chapter, we will cover various ways to configure tmux to customize and optimize it for your workflow. We will build a sample configuration that can be used to make tmux a bit cleaner, prettier, and more useful.

We will be unable to cover every minute detail or configuration option, but we will hit the most common ones and set you up with the knowledge and toolset to be able to tackle any configuration you desire. In this chapter, we will discuss the following:

  • Using the set-option command
  • Creating a tmux configuration file
  • Emacs or vi mode
  • Enabling mouse modes
  • Changing the status bar
    • Modifying the background color of the status bar
    • Reloading the configuration
    • Changing the foreground color of the status bar
    • Highlighting the active window
  • Binding keys
    • Viewing current bindings
    • Chaining multiple commands to a single key
    • Comments in the configuration file
    • Rebinding the prefix key
  • Binding a new prefix key
  • Binding keys without the prefix key
  • Unbinding keys
  • Revising the status bar
  • Option types
  • Handy configuration tips

By the end of this chapter, we will also have built up a sample configuration file that you can use as a starting point for your own personalized configuration.

主站蜘蛛池模板: 句容市| 香格里拉县| 响水县| 岑溪市| 黎平县| 咸宁市| 潢川县| 仪征市| 黔江区| 铜陵市| 桃园县| 台江县| 分宜县| 苏尼特右旗| 太仆寺旗| 游戏| 泗水县| 沙河市| 溧水县| 斗六市| 冷水江市| 高碑店市| 简阳市| 左权县| 永安市| 景泰县| 江都市| 泾阳县| 龙门县| 四川省| 眉山市| 麻江县| 平乐县| 卢龙县| 综艺| 阳高县| 叶城县| 新竹县| 阿克陶县| 阿勒泰市| 竹山县|