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-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 $?)
|
|
|
|
}
|
|
|
|
|
|
|
|
if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
|
|
|
|
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
|
|
|
|
fi
|
|
|
|
```
|