mirror of
https://github.com/tmux-plugins/tmux-continuum.git
synced 2024-11-14 22:28:47 +00:00
17 lines
312 B
Bash
17 lines
312 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
|
||
|
}
|
||
|
|
||
|
set_tmux_option() {
|
||
|
local option="$1"
|
||
|
local value="$2"
|
||
|
tmux set-option -gq "$option" "$value"
|
||
|
}
|