Neofetch
neofetch prints an ASCII logo with info next to it and a row of color blocks, like the real tool. By default it
shows fake system info. With the neofetch prop it becomes a mini CV.
Default output
.-----------------. guest@one-terminal
| .-------------. | ------------------
| | >_ | | OS: one-terminal
| | | | Host: one-terminal
| | | | Shell: zsh
| '-------------' | Uptime: 3 mins
'-------. .-------' Resolution: 1920x1080
.---' '---. Commands: 17
'---------' Files: 12The title line uses the username and hostname props, and
the Shell line uses the shellName prop (zsh by default). Uptime counts
from when the terminal mounted.
Your own info
Pass info as label → value pairs. They replace the default lines and keep the order you wrote them in.
<Terminal
username="ines"
hostname="portfolio"
neofetch={{
info: {
Role: 'Software Engineer',
Location: 'Lisbon, Portugal',
Languages: 'TypeScript, Rust, Go',
Currently: 'Building one-terminal',
Contact: "run 'cat contact.txt'",
},
}}
/>Custom logo
logo is a multi-line string. Template literals keep the spacing:
const logo = String.raw`
/\_/\
( o.o )
> ^ <
`;
<Terminal neofetch={{ logo, info: { Mood: 'Curious' } }} />Use String.raw when your art contains backslashes, so they aren’t treated as escapes.
Everything together
The title line comes from username and hostname, the default Shell line from shellName, and the rest from
the neofetch prop:
const logo = String.raw`
/\_/\
( o.o )
> ^ <
`;
<Terminal
username="jack" // jack@portfolio on the title line
hostname="portfolio"
shellName="bash" // "Shell: bash" in the default info, and "bash: command not found: ..."
neofetch={{
logo,
info: {
Role: 'Software Engineer',
Location: 'Lisbon, Portugal',
Languages: 'TypeScript, Rust, Go',
Contact: "run 'contact'",
},
colors: false, // hide the color blocks
}}
/> /\_/\ jack@portfolio
( o.o ) --------------
> ^ < Role: Software Engineer
Location: Lisbon, Portugal
Languages: TypeScript, Rust, Go
Contact: run 'contact'Passing info replaces all the default lines, including Shell. Add Shell: 'bash' to info yourself if you
want to keep it.
Options
| Option | Type | Default | Description |
|---|---|---|---|
logo | string | Terminal icon | ASCII art shown on the left |
info | Record<string, string> | System info | Lines shown on the right |
colors | boolean | true | Show the row of color blocks |
The logo and labels use the theme’s promptColor. On narrow screens the info wraps below the logo.
When piped (neofetch | grep Role), only the text lines are passed on.