swline/README.md

14 lines
237 B
Markdown
Raw Normal View History

2024-11-13 15:52:59 -08:00
# swline
2024-11-13 15:57:48 -08:00
Cute shell
add this to your bashrc I guess
```bash
function _update_ps1() {
PS1=$(swline $?)
}
if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
```