All apps/basename

basename

basename

Return the filename portion of a pathname.

Runs as basename|macOS, Linux, Windows

Command form

ai-draft · 1 task · 3 fields

Print the last component of one or more paths, optionally removing a suffix.

Opens the form; the finished command lands at your prompt, unrun
otty gui basename
Strip directory from pathExample values, fixed in this page — nothing here reaches a terminal
Basic
Paths*
string
Treat every argument as a string
-a
TasksEach one presets the form for one job
Strip directories
namesall
ParametersOnly these flags are editable in the form
Paths
string · positional 0 · repeatable
Treat every argument as a string
boolean
-a
Suffix to remove
string
-s
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed basename against its version. A form that does not match your version is not offered.