swline/README.md

23 lines
497 B
Markdown
Raw Permalink Normal View History

2024-11-13 15:52:59 -08:00
# swline
2024-11-13 16:03:44 -08:00
![](https://lounge.swee.codes/uploads/5da6d1586df80b43/Screenshot_20241113_152445-1.png)
2024-12-12 21:24:57 -08:00
2024-11-13 15:57:48 -08:00
Cute shell
2024-11-13 16:03:44 -08:00
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
```
2024-11-13 15:57:48 -08:00
add this to your bashrc I guess
```bash
function _update_ps1() {
PS1=$(swline $?)
}
2024-11-15 22:21:09 -08:00
if [[ ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
2024-11-13 15:57:48 -08:00
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
```