22 lines
No EOL
496 B
Markdown
22 lines
No EOL
496 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 [[ ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
|
|
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
|
|
fi
|
|
``` |