1
0
Fork 0
mirror of synced 2024-12-14 03:15:47 -05:00
tpm/scripts/helpers.sh

11 lines
214 B
Bash
Raw Normal View History

get_tmux_option() {
local option="$1"
local default_value="$2"
2015-08-02 18:42:03 -04:00
local option_value="$(tmux show-option -gqv "$option")"
if [ -z "$option_value" ]; then
echo "$default_value"
else
echo "$option_value"
fi
}