Cute shell
Find a file
2025-01-01 21:33:51 -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-12-12 21:24:57 -08:00
swline Update swline 2025-01-01 21:33:51 -08:00

swline

Cute shell
How I installed it:

$ sudo mkdir /git
$ sudo chmod a+rw /git
$ cd git
$ git clone https://git.swee.codes/swee/swline.git
$ sudo ln -s /git/swline/swline /usr/local/bin/swline

add this to your bashrc I guess

function _update_ps1() {
    PS1=$(swline $?)
}

if [[ ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
    PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi