refactor: dry duplicated code for getting tmux status-left
This commit is contained in:
parent
28eed454f7
commit
dd1c215631
10 changed files with 17 additions and 10 deletions
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue