https://github.com/tilt-dev/tilt-status-prompt
https://github.com/tilt-dev/tilt-status-prompt
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tilt-dev/tilt-status-prompt
- Owner: tilt-dev
- Created: 2021-05-10T18:58:18.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-11T13:17:00.000Z (about 5 years ago)
- Last Synced: 2025-01-02T08:14:55.119Z (over 1 year ago)
- Language: Shell
- Size: 19.5 KB
- Stars: 2
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Description
Adds your Tilt resource status to your bash prompt, e.g.:

# Usage
Put tilt-status-prompt.sh somewhere on your machine, e.g.:
```
mkdir -p ~/bin
curl https://raw.githubusercontent.com/tilt-dev/tilt-status-prompt/main/tilt-status-prompt.sh > ~/bin/tilt-status-prompt.sh
```
`source` it in your ~/.bashrc, e.g.:
```
echo 'source ~/bin/tilt-status-prompt.sh' > ~/.bashrc
```
change .bashrc to use `tilt_ps1` in your `$PS1`, e.g.:
```
export PS1='[\t $(__tilt_ps1)\$ '
```
Tilt status will now show up in your prompt any new shells. To get it to show up in an existing shell, run `source ~/.bashrc`.