237 B
237 B
swline
Cute shell
add this to your bashrc I guess
function _update_ps1() {
PS1=$(swline $?)
}
if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi