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

22 lines
502 B
Bash
Raw Normal View History

2023-09-06 14:03:56 +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 "$*"
}