Cute shell
Find a file
2024-11-13 15:57:48 -08:00
.gitignore Initial commit 2024-11-13 15:52:59 -08:00
LICENSE Initial commit 2024-11-13 15:52:59 -08:00
README.md Update README.md 2024-11-13 15:57:48 -08:00
swline Add script 2024-11-13 15:56:07 -08:00

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