From 185d959f250006c7e3755b293ff4f29639fe0991 Mon Sep 17 00:00:00 2001 From: pagedown Date: Tue, 28 Jun 2022 11:43:19 +0800 Subject: [PATCH] ssh kitten: Add MacPorts paths to the common locations for login shell --- shell-integration/ssh/bootstrap-utils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell-integration/ssh/bootstrap-utils.sh b/shell-integration/ssh/bootstrap-utils.sh index d623a9418..11a4ac7df 100644 --- a/shell-integration/ssh/bootstrap-utils.sh +++ b/shell-integration/ssh/bootstrap-utils.sh @@ -202,11 +202,11 @@ prepare_for_exec() { /*) ;; *) if ! command -v "$login_shell" > /dev/null 2> /dev/null; then - for i in /opt/homebrew/bin /opt/homebrew/sbin /usr/local/bin /usr/bin /bin /usr/sbin /sbin + for i in /opt/homebrew/bin /opt/homebrew/sbin /opt/local/bin /opt/local/sbin /usr/local/bin /usr/bin /bin /usr/sbin /sbin do if [ -x "$i/$login_shell" ]; then login_shell="$i/$login_shell" - break; + break fi done fi