refactor: dry duplicated method

This commit is contained in:
Maciej Sypien 2024-09-22 22:11:21 +02:00
parent e33cccf5c6
commit fa42a2e465
No known key found for this signature in database
GPG key ID: 10BC01EDA6827DC8
10 changed files with 15 additions and 9 deletions

View file

@ -61,3 +61,9 @@ tmux_set_window_option_now() {
_value="$2"
tmux set-window-option -gq "$_option_name" "$_value"
}
# return the value of status style
tmux_get_statusstyle() {
local _val=tmux show-option -gqv status-style
echo "$_val"
}