Update README.md

This commit is contained in:
Nova Cat 2024-11-13 15:57:48 -08:00
parent c271bd4167
commit 375013e066

View file

@ -1,3 +1,14 @@
# swline
Cute shell
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
```