diff --git a/README.md b/README.md index 456a036..33880a4 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ and pairing with smart people at Hashrocket. For a steady stream of TILs, [sign up for my newsletter](https://tinyletter.com/jbranchaud). -_979 TILs and counting..._ +_981 TILs and counting..._ --- @@ -881,6 +881,7 @@ _979 TILs and counting..._ - [Pane Killer](tmux/pane-killer.md) - [Reclaiming The Entire Window](tmux/reclaiming-the-entire-window.md) - [Rename The Current Session](tmux/rename-the-current-session.md) +- [Show The Current Value For An Option](tmux/show-the-current-value-for-an-option.md) - [Swap Split Panes](tmux/swap-split-panes.md) - [Switch To A Specific Session And Window](tmux/switch-to-a-specific-session-and-window.md) - [tmux in your tmux](tmux/tmux-in-your-tmux.md) diff --git a/tmux/show-the-current-value-for-an-option.md b/tmux/show-the-current-value-for-an-option.md new file mode 100644 index 0000000..4225806 --- /dev/null +++ b/tmux/show-the-current-value-for-an-option.md @@ -0,0 +1,21 @@ +# Show The Current Value For An Option + +In the `~/.tmux.conf` file, you are able to define and override the values of +various options. Outside of explicitly setting an option, you may want to know +what its value is. + +Perhaps it is unset, perhaps you don't remember, or maybe this particular +session or pane is different than the global config. + +Either from the CLI, you can run the `tmux` command to check: + +`$ tmux show-option -g history-limit` + +Or as a command to tmux, using your prefix: + +`:show-option -g history-limit` + +The `-g` flag will tell you the option's value as set globally for tmux. `-w` +for window, `-p` for pane, or no flag for the current session. + +See `man tmux` for more details.