From fdb8af0d9b1d00d1d0cb931f5483c81b8099304f Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 8 Jul 2024 17:30:15 +0800 Subject: [PATCH] update tmux --- .tmux.conf.local | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/.tmux.conf.local b/.tmux.conf.local index c6651a6..1237ed5 100644 --- a/.tmux.conf.local +++ b/.tmux.conf.local @@ -5,6 +5,16 @@ # Copyright 2012— Gregory Pakosz (@gpakosz). +# -- bindings ------------------------------------------------------------------ + +# preserve tmux stock bindings, +# while adding bindings that don't conflict with these stock bindings +# /!\ this disables some of Oh my tmux! bindings described in README.md +# - true +# - false (default) +tmux_conf_preserve_stock_bindings=false + + # -- session creation ---------------------------------------------------------- # prompt for session name when creating a new session, possible values are: @@ -13,6 +23,12 @@ # - disabled (do not modify new-session bindings) tmux_conf_new_session_prompt=false +# new session retains current path, possible values are: +# - true +# - false (default) +# - disabled (do not modify new-session bindings) +tmux_conf_new_session_retain_current_path=false + # -- windows & pane creation --------------------------------------------------- @@ -344,19 +360,25 @@ tmux_conf_theme_clock_style="24" # - true # - false (default) # - disabled -# on macOS, this requires installing reattach-to-user-namespace, see README.md # on Linux, this requires xsel, xclip or wl-copy tmux_conf_copy_to_os_clipboard=false +# -- urlscan ------------------------------------------------------------------- + +# options passed to urlscan +tmux_conf_urlscan_options="--compact --dedupe" + + # -- user customizations ------------------------------------------------------- + # this is the place to override or undo settings # increase history size #set -g history-limit 10000 # start with mouse mode enabled -# set -g mouse on +#set -g mouse on # force Vi mode # really you should export VISUAL or EDITOR environment variable, see manual @@ -432,6 +454,8 @@ tmux_conf_uninstall_plugins_on_reload=true # then, use #{foo} in e.g. the 'tmux_conf_theme_status_left' or the # 'tmux_conf_theme_status_right' variables. +# ------------------------------------------------------------------------------ + # # /!\ do not remove the following line # EOF # @@ -446,5 +470,16 @@ tmux_conf_uninstall_plugins_on_reload=true # ping -c 1 1.1.1.1 >/dev/null 2>&1 && printf '✔' || printf '✘' # } # +# wan_ip_v4() { +# curl -f -s -m 2 -4 ifconfig.me +# sleep 300 # sleep for 5 minutes, throttle network requests whatever the value of status-interval +# } +# +# wan_ip_v6() { +# curl -f -s -m 2 -6 ifconfig.me +# sleep 300 # sleep for 5 minutes, throttle network requests whatever the value of status-interval +# } +# # "$@" # # /!\ do not remove the previous line +# # do not write below this line