configs/home/.zsh-distrobox/themes/spaceship-prompt/lib/testkit.zsh

22 lines
502 B
Bash
Raw Permalink Normal View History

2023-06-16 22:58:47 +02:00
#!/usr/bin/env zsh
# ------------------------------------------------------------------------------
# TESTKIT
# Functions commonly used for testing
# ------------------------------------------------------------------------------
spaceship::testkit::render_prompt() {
prompt_spaceship_precmd
spaceship::prompt "$*"
}
spaceship::testkit::render_rprompt() {
prompt_spaceship_precmd
spaceship::rprompt "$*"
}
spaceship::testkit::render_ps2() {
prompt_spaceship_precmd
spaceship::ps2 "$*"
}