Hide lab name in whoami
This commit is contained in:
1 parent
950a38aad8
commit
197f97aa4c
1 file changed
+2
-1
@@ -14,6 +14,7 @@ function joinWithDots(spans: Span[]): Span[] {
|
|||||||
|
|
||||||
function whoamiOutput(): OutputBlock[] {
|
function whoamiOutput(): OutputBlock[] {
|
||||||
const currentRole = experience[0];
|
const currentRole = experience[0];
|
||||||
|
const currentRoleTitle = currentRole?.role.split(',')[0] ?? '';
|
||||||
const header = `${profile.username}@${profile.hostname}`;
|
const header = `${profile.username}@${profile.hostname}`;
|
||||||
const interests = profile.interests;
|
const interests = profile.interests;
|
||||||
const socialLinks = profile.socials.map((social) => link(social.name.toLowerCase(), social.url));
|
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')),
|
line(span('─'.repeat(header.length), 'muted')),
|
||||||
field('alias', profile.displayName),
|
field('alias', profile.displayName),
|
||||||
field('role', profile.title),
|
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'))))] : []),
|
...(interests.length ? [field('interests', ...joinWithDots(interests.map((interest) => span(interest, 'magenta'))))] : []),
|
||||||
blankLine,
|
blankLine,
|
||||||
line(span(' ', 'muted'), span(profile.bio, 'foreground')),
|
line(span(' ', 'muted'), span(profile.bio, 'foreground')),
|
||||||
|
|||||||
Reference in new issue
Block a user