swline/README.md
2024-11-13 16:03:44 -08:00

22 lines
No EOL
514 B
Markdown

# swline
![](https://lounge.swee.codes/uploads/5da6d1586df80b43/Screenshot_20241113_152445-1.png)
Cute shell
How I installed it:
```bash
$ 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
```bash
function _update_ps1() {
PS1=$(swline $?)
}
if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
```