+ tmux-ip-address plugin with custom hand made fixes about remove beep x07 symbol (represented as \a from ip address values) from status-right bar

This commit is contained in:
2024-10-16 12:39:03 +03:00
parent d69b7bbcf5
commit 05823efcb7
7 changed files with 191 additions and 0 deletions

View File

@ -0,0 +1,18 @@
#!/usr/bin/env bash
set_tmux_option() {
local option="$1"
local value="$2"
tmux set-option -gq "$option" "$value"
}
get_tmux_option() {
local option="$1"
local default_value="$2"
local option_value="$(tmux show-option -gqv "$option")"
if [ -z "$option_value" ]; then
echo "$default_value"
else
echo "$option_value"
fi
}