Skip to content

Commit 15ff35f

Browse files
Restyled by shfmt
1 parent d221692 commit 15ff35f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

scripts/tmux_cmd_path.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
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 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
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
1010
TMUX_SERVER_PID=$(ps -eo pid=,comm= | grep 'tmux: server' | awk '{ print $1; }')
1111

1212
if [[ -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$//')
1414
else
15-
TMUX_CMD_PATH='tmux'
15+
TMUX_CMD_PATH='tmux'
1616
fi
1717

1818
export TMUX_CMD_PATH

vim-tmux-navigator.tmux

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#!/usr/bin/env bash
2-
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2+
CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
33
SCRIPTS_DIR="$CURRENT_DIR/scripts"
44

55
source "$SCRIPTS_DIR/tmux_cmd_path.sh"
66

77
version_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$//')"
1313
echo "tmux executable used: $TMUX_CMD_PATH"
1414

1515
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \

0 commit comments

Comments
 (0)