File tree Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket.
10
10
11
11
For a steady stream of TILs, [ sign up for my newsletter] ( https://tinyletter.com/jbranchaud ) .
12
12
13
- _ 983 TILs and counting..._
13
+ _ 984 TILs and counting..._
14
14
15
15
---
16
16
@@ -883,6 +883,7 @@ _983 TILs and counting..._
883
883
- [ Pane Killer] ( tmux/pane-killer.md )
884
884
- [ Reclaiming The Entire Window] ( tmux/reclaiming-the-entire-window.md )
885
885
- [ Rename The Current Session] ( tmux/rename-the-current-session.md )
886
+ - [ Reset An Option Back To Its Default Value] ( tmux/reset-an-option-back-to-its-default-value.md )
886
887
- [ Show The Current Value For An Option] ( tmux/show-the-current-value-for-an-option.md )
887
888
- [ Swap Split Panes] ( tmux/swap-split-panes.md )
888
889
- [ Switch To A Specific Session And Window] ( tmux/switch-to-a-specific-session-and-window.md )
Original file line number Diff line number Diff line change
1
+ # Reset An Option Back To Its Default Value
2
+
3
+ Once you start changing the values of options, tmux can be opaque about what
4
+ the original default values were.
5
+
6
+ For instance, if you change the ` escape-time ` option with the following
7
+ command:
8
+
9
+ ``` bash
10
+ $ tmux set-option -g escape-time 0
11
+ ```
12
+
13
+ It's now set to ` 0 ` , so without digging through the tmux man pages, how do you
14
+ figure out what the default was and restore it?
15
+
16
+ The ` set-option ` command takes the ` -u ` flag to _ unset_ the option. This will
17
+ restore it to the default.
18
+
19
+ ``` bash
20
+ $ tmux set-option -u escape-time
21
+ ```
22
+
23
+ And you can now see the original default value with ` show-option ` .
24
+
25
+ ``` bash
26
+ $ tmux show-option escape-time
27
+ 500
28
+ ```
29
+
30
+ Use ` set-option -u ` with any option to restore it to its default.
31
+
32
+ Find ` set-option ` in ` man tmux ` for more details.
You can’t perform that action at this time.
0 commit comments