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(" ") + "]") : "" + }`, ); } }