1
0
Fork 0
mirror of synced 2024-11-15 22:18:58 -05:00
tpm/scripts/helpers.sh
2015-03-14 20:21:38 +01:00

10 lines
212 B
Bash

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
}