Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions prefix_highlight.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,12 @@ main() {

local -r highlight="#{?client_prefix,$prefix_mode,$fallback}#[default]"

local -r status_left_value="$(tmux_option "status-left")"
tmux set-option -gq "status-left" "${status_left_value/$place_holder/$highlight}"

local -r status_right_value="$(tmux_option "status-right")"
tmux set-option -gq "status-right" "${status_right_value/$place_holder/$highlight}"
local interpolated_options="$(tmux_option "@plugin_interpolated_options" "status-right status-left")"
for interpolated_option in $interpolated_options
do
local -r option_value="$(tmux_option $interpolated_option)"
tmux set-option -gq $interpolated_option "${option_value/$place_holder/$highlight}"
done
}

main