Add better mouse plugin to tmux to adjust sensitive scrolling

This commit is contained in:
2020-02-19 15:52:34 +00:00
parent fccfc90ace
commit e1d466362d
8 changed files with 352 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
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
}
get_tmux_version() {
tmux -V | cut -d " " -f 2
}