Add better mouse plugin to tmux to adjust sensitive scrolling
This commit is contained in:
15
.tmux/plugins/tmux-better-mouse-mode/scripts/helpers.sh
Normal file
15
.tmux/plugins/tmux-better-mouse-mode/scripts/helpers.sh
Normal 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user