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

22 lines
502 B
Bash
Raw Normal View History

2022-12-01 13:28:20 +01: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 "$*"
}