refactor: dry duplicated code for getting tmux status-left

This commit is contained in:
Maciej Sypien 2024-09-22 22:25:56 +02:00
parent 28eed454f7
commit dd1c215631
No known key found for this signature in database
GPG key ID: 10BC01EDA6827DC8
10 changed files with 17 additions and 10 deletions

View file

@ -64,6 +64,13 @@ tmux_set_window_option_now() {
# return the value of status style
tmux_get_statusstyle() {
local _val=tmux show-option -gqv status-style
local _val
_val=$(tmux show-option -gqv status-style)
echo "$_val"
}
tmux_get_statusleft() {
local _val
_val=$(tmux show-option -gqv status-left)
echo "$_val"
}