Built-in commands¶
Run help inside nshell for per-command detail, and type NAME to check
whether a name resolves to a builtin, a function, or an external program.
alias, abbr, bg, cd, complete, contains, count, disown, echo,
exec, exit, export, false, fg, function, help, history, jobs,
ls, not, pipeline-graph, pwd, read, seq, set, source, string,
test, true, type, which.
Notes on a few of them¶
abbr registers an abbreviation that expands inline as you type, so
history records the expanded command. Prefer it to alias when you want the
short form only while typing.
pipeline-graph renders a typed pipeline as a Graphviz DOT graph, or a
Mermaid flowchart with --mermaid, without executing it. Quote the pipeline so
the shell passes it as one argument — see
Recipes.
string is the fish-style string toolkit (string upper, string split,
and friends) rather than a single-purpose command.
complete registers completion metadata for a command, feeding the same
knowledge base the built-in command catalog uses.
disown removes a job from the shell's job table so it survives exit,
complementing jobs, fg, and bg.