File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # Written by michaellee8 <[email protected] > in Nov 2020 for 4- # https://github.com/tmux-plugins/tpm/issues/189 to prevent problems caused by
5- # tmux version mismatch between client and server. This script is
3+ # Written by michaellee8 <[email protected] > in Nov 2020 for4+ # https://github.com/tmux-plugins/tpm/issues/189 to prevent problems caused by
5+ # tmux version mismatch between client and server. This script is
66# licensed in public domain.
77
8- # Try to get the process ID of the running tmux server,
8+ # Try to get the process ID of the running tmux server,
99# would be empty if not found
1010TMUX_SERVER_PID=$( ps -eo pid=,comm= | grep ' tmux: server' | awk ' { print $1; }' )
1111
1212if [[ -n " $TMUX_SERVER_PID " ]]; then
13- TMUX_CMD_PATH=$( realpath " /proc/$TMUX_SERVER_PID /exe" 2> /dev/null || echo " tmux" | sed -z ' $ s/\n$//' )
13+ TMUX_CMD_PATH=$( realpath " /proc/$TMUX_SERVER_PID /exe" 2> /dev/null || echo " tmux" | sed -z ' $ s/\n$//' )
1414else
15- TMUX_CMD_PATH=' tmux'
15+ TMUX_CMD_PATH=' tmux'
1616fi
1717
1818export TMUX_CMD_PATH
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- CURRENT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
2+ CURRENT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
33SCRIPTS_DIR=" $CURRENT_DIR /scripts"
44
55source " $SCRIPTS_DIR /tmux_cmd_path.sh"
66
77version_pat=' s/^tmux[^0-9]*([.0-9]+).*/\1/p'
88
9- # Try to find the executable path of the currently running
10- # tmux server, fallback to just "tmux" if not found or no
9+ # Try to find the executable path of the currently running
10+ # tmux server, fallback to just "tmux" if not found or no
1111# procfs aviliable (non-linux).
12- export TMUX_CMD_PATH=" $( realpath " /proc/$( tmux display -p ' #{pid}' ) /exe" 2> /dev/null || echo " tmux" | sed -z ' $ s/\n$//' ) "
12+ export TMUX_CMD_PATH=" $( realpath " /proc/$( tmux display -p ' #{pid}' ) /exe" 2> /dev/null || echo " tmux" | sed -z ' $ s/\n$//' ) "
1313echo " tmux executable used: $TMUX_CMD_PATH "
1414
1515is_vim=" ps -o state= -o comm= -t '#{pane_tty}' \
You can’t perform that action at this time.
0 commit comments