From 197f97aa4cee4129aa20c43fc243d17df3ec8a18 Mon Sep 17 00:00:00 2001 From: SirBlobby Date: Sat, 31 Oct 2026 18:41:16 -0400 Subject: [PATCH] Hide lab name in whoami --- src/lib/terminal/commands/whoami.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/terminal/commands/whoami.ts b/src/lib/terminal/commands/whoami.ts index dbbd9bb..dee3846 100644 --- a/src/lib/terminal/commands/whoami.ts +++ b/src/lib/terminal/commands/whoami.ts @@ -14,6 +14,7 @@ function joinWithDots(spans: Span[]): Span[] { function whoamiOutput(): OutputBlock[] { const currentRole = experience[0]; + const currentRoleTitle = currentRole?.role.split(',')[0] ?? ''; const header = `${profile.username}@${profile.hostname}`; const interests = profile.interests; const socialLinks = profile.socials.map((social) => link(social.name.toLowerCase(), social.url)); @@ -23,7 +24,7 @@ function whoamiOutput(): OutputBlock[] { line(span('─'.repeat(header.length), 'muted')), field('alias', profile.displayName), field('role', profile.title), - ...(currentRole ? [field('now', span(currentRole.role, 'orange'), span(' @ ', 'muted'), currentRole.organization)] : []), + ...(currentRole ? [field('now', span(currentRoleTitle, 'orange'), span(' @ ', 'muted'), currentRole.organization)] : []), ...(interests.length ? [field('interests', ...joinWithDots(interests.map((interest) => span(interest, 'magenta'))))] : []), blankLine, line(span(' ', 'muted'), span(profile.bio, 'foreground')),