tmux-host/scripts/helpers.sh

12 lines
215 B
Bash
Raw Permalink Normal View History

2018-12-19 02:50:29 -05:00
get_tmux_option() {
local option="$1"
local default_value="$2"
local option_value="$(tmux show-option -gqv "$option")"
if [ -z "$option_value" ]; then
echo "$default_value"
else
echo "$option_value"
fi
}