https://github.com/devkanro/bullettrain-go-k8s
Kubernetes car for the Bullet shell prompt train.
https://github.com/devkanro/bullettrain-go-k8s
Last synced: 10 months ago
JSON representation
Kubernetes car for the Bullet shell prompt train.
- Host: GitHub
- URL: https://github.com/devkanro/bullettrain-go-k8s
- Owner: devkanro
- Created: 2019-05-29T08:45:27.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-29T08:59:10.000Z (about 7 years ago)
- Last Synced: 2025-01-03T04:34:13.905Z (over 1 year ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kubernetes car for the [Bullettrain](https://github.com/bullettrain-sh/bullettrain-go-core) shell prompt
## Features:
- Displaying only when kubectl installed
- Kubernetes context display
**Callword**: `k8s`
**Template variables**:
* `.Icon`: the car's icon
* `.Context`: the Kubernetes context text
**Template colours**:
* `c`: the car's colour
## Car options
| Environment variable | Description | Default value |
|:--------------------------------------|:---------------------------------------------------------------|:------------------------------------------------|
| BULLETTRAIN_CAR_K8S_SHOW | Whether the car needs to be shown all the time. | true |
| BULLETTRAIN_CAR_K8S_TEMPLATE | The car's template. | `{{.Icon \| printf " %s " \| c}}{{.Context \| c}}` |
| BULLETTRAIN_CAR_K8S_PAINT | Colour override for the car's paint. | white+h:yellow |
| BULLETTRAIN_CAR_K8S_SYMBOL_ICON | Icon displayed on the car. | `⎈` |
| BULLETTRAIN_CAR_K8S_SEPARATOR_PAINT | Colour override for the car's right hand side separator paint. | Using default painting algorythm. |
| BULLETTRAIN_CAR_K8S_SEPARATOR_SYMBOL | Override the car's right hand side separator symbol. | Using global symbol. |
| BULLETTRAIN_CAR_K8S_SEPARATOR_TEMPLATE | Defines the car separator's template. | Using global template. |
# Contribute
Even reporting your use case will greatly help us to figure out/improve
this product, so feel free to reach out in the Issues section.