Skip to main content

tmux_opt

Function tmux_opt 

Source
pub fn tmux_opt(name: &str, default: &str) -> String
Expand description

A tmux user option, or a default when it is not SET at all.

Set-but-empty and unset are different answers: an empty @taimux-key means “do not bind that one”, which is why this asks whether the option exists before reading its value.