From c9c1911085ffd78f1d5bde99cfa260ef135073e4 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sun, 11 Jan 2026 14:02:51 +0800 Subject: [PATCH] feat: ssh.ts --- single-scripts/ssh.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/single-scripts/ssh.ts b/single-scripts/ssh.ts index 957f407..ca6cc91 100755 --- a/single-scripts/ssh.ts +++ b/single-scripts/ssh.ts @@ -62,6 +62,9 @@ function printSshConfig(sshConfig: SshConfig) { for (let i = 0; i < allProfiles.length; i++) { const k = allProfiles[i]; const sshProfile = sshConfig.profiles[k]; + const features = []; + if (sshProfile.proxy) features.push("proxy"); + if (sshProfile.forward_agent) features.push("forward_agent"); console.log( ` - ${k}${ " ".repeat(maxProfileNameLength - k.length) @@ -73,7 +76,9 @@ function printSshConfig(sshConfig: SshConfig) { : "aliases" }: [${ (sshProfile.alias && sshProfile.alias.join(", ")) || "" - }]${RESET} # ${sshProfile.comment}`, + }]${RESET} # ${sshProfile.comment}${ + (features.length > 0) ? (" ;[" + features.join(" ") + "]") : "" + }`, ); } }