1
0
Fork 0
mirror of synced 2024-12-04 14:45:38 -05:00

fixup! added support for configuration files in the following locations: - ~/.tmux.conf and ~/.tmux.conf.local - $XDG_CONFIG_HOME/tmux/tmux.conf and $XDG_CONFIG_HOME/tmux/tmux.conf.local - ~/.config/tmux/tmux.conf and ~/.config/tmux/tmux.conf.local

This commit is contained in:
Gregory Pakosz 2023-01-21 21:45:39 +01:00
parent cfb89a4a07
commit 830389891d

View file

@ -1334,7 +1334,7 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
# esac
# if [ $_tmux_version -ge 320 ]; then
# tmux run -b "trap '[ -n \"\$sleep_pid\" ] && kill -9 \$sleep_pid; exit 0' TERM; while [ x\"\$(\"$TMUX_EXECUTABLE\" -S '#{socket_path}' display -p '#{l:#{pid}}')\" = x\"#{pid}\" ]; do nice cut -c3- \"$TMUX_CONF\" | sh -s _uptime; sleep $interval & sleep_pid=\$!; wait \$sleep_pid; sleep_pid=; done"
# elif [ $_tmux_version -gt 280 ]; then
# elif [ $_tmux_version -ge 280 ]; then
# status_right="#(echo; while [ x\"\$(\"$TMUX_EXECUTABLE\" -S '#{socket_path}' display -p '#{l:#{pid}}')\" = x\"#{pid}\" ]; do nice cut -c3- \"$TMUX_CONF\" | sh -s _uptime; sleep $interval; done)$status_right"
# elif [ $_tmux_version -gt 240 ]; then
# status_right="#(echo; while :; do nice cut -c3- \"$TMUX_CONF\" | sh -s _uptime; sleep $interval; done)$status_right"
@ -1354,7 +1354,7 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
# interval=$(tmux show -gv status-interval)
# if [ $_tmux_version -ge 320 ]; then
# tmux run -b "trap '[ -n \"\$sleep_pid\" ] && kill -9 \$sleep_pid; exit 0' TERM; while [ x\"\$(\"$TMUX_EXECUTABLE\" -S '#{socket_path}' display -p '#{l:#{pid}}')\" = x\"#{pid}\" ]; do nice cut -c3- \"$TMUX_CONF\" | sh -s _loadavg; sleep $interval & sleep_pid=\$!; wait \$sleep_pid; sleep_pid=; done"
# elif [ $_tmux_version -gt 280 ]; then
# elif [ $_tmux_version -ge 280 ]; then
# status_right="#(echo; while [ x\"\$(\"$TMUX_EXECUTABLE\" -S '#{socket_path}' display -p '#{l:#{pid}}')\" = x\"#{pid}\" ]; do nice cut -c3- \"$TMUX_CONF\" | sh -s _loadavg; sleep $interval; done)$status_right"
# elif [ $_tmux_version -gt 240 ]; then
# status_right="#(echo; while :; do nice cut -c3- \"$TMUX_CONF\" | sh -s _loadavg; sleep $interval; done)$status_right"