asciiship
asciiship copied to clipboard
A heavily reduced, ASCII-only version of the Spaceship and Starship prompts.
asciiship
A heavily reduced, ASCII-only version of the Spaceship and Starship prompts.

What does it show?
- On the top line:
- Value of
SHLVL
when shell level is at least 2. - User name when root or in an SSH session.
- Host name when in an SSH session.
- Current directory.
- Git information when you are in a git repo. This requires the git-info
module, that can be customized with additional settings.
The following information is shown:
- Current branch name, or commit short hash when in 'detached HEAD' state.
- Git action, when there's an operation in progress.
-
$
when there are stashed states. -
!
when there are modified files. -
+
when there are staged files. -
>
and/or<
when there are commits ahead and/or behind of remote, respectively.
- Python venv indicator.
- How long the last command took to execute. This requires the duration-info module, that can also be customized with additional settings.
- Value of
- On the bottom line:
-
*
when there are background jobs running. - Exit code of last command, when it's not zero.
-
#
when root,%
otherwise. - Keymap indicator.
-
Requirements
Requires Zim's git-info module to show git information, and duration-info module to show the last command duration.