Skip to content

Commit

Permalink
feat: add multi-line support (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
aykutcan authored Dec 11, 2024
1 parent 51fb321 commit bb136e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pomodoro.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ main() {
set_keybindings
update_tmux_option "status-right"
update_tmux_option "status-left"

local lines=$(get_tmux_option "status")
if [[ "$lines" =~ ^[0-9]+$ ]] && [ "$lines" -ge 2 ]; then
for (( i = 1; i < lines; i++ )); do
update_tmux_option "status-format[$i]"
done
fi
}

main

0 comments on commit bb136e7

Please sign in to comment.