Update README.md
This commit is contained in:
parent
c271bd4167
commit
375013e066
1 changed files with 12 additions and 1 deletions
13
README.md
13
README.md
|
@ -1,3 +1,14 @@
|
||||||
# swline
|
# swline
|
||||||
|
|
||||||
Cute shell
|
Cute shell
|
||||||
|
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
|
||||||
|
```
|
Loading…
Reference in a new issue