mirror of
https://github.com/tmux-plugins/tpm.git
synced 2024-11-16 17:38:57 +00:00
cf9bd36d15
Closes #19
11 lines
212 B
Bash
11 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
|
|
}
|