mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 11:50:38 +01:00
@@ -30,6 +30,7 @@ if [ ! -n "${BULLETTRAIN_PROMPT_ORDER+1}" ]; then
|
|||||||
nvm
|
nvm
|
||||||
aws
|
aws
|
||||||
go
|
go
|
||||||
|
rust
|
||||||
elixir
|
elixir
|
||||||
git
|
git
|
||||||
hg
|
hg
|
||||||
@@ -139,6 +140,17 @@ if [ ! -n "${BULLETTRAIN_GO_PREFIX+1}" ]; then
|
|||||||
BULLETTRAIN_GO_PREFIX="go"
|
BULLETTRAIN_GO_PREFIX="go"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Rust
|
||||||
|
if [ ! -n "${BULLETTRAIN_RUST_BG+1}" ]; then
|
||||||
|
BULLETTRAIN_RUST_BG=black
|
||||||
|
fi
|
||||||
|
if [ ! -n "${BULLETTRAIN_RUST_FG+1}" ]; then
|
||||||
|
BULLETTRAIN_RUST_FG=white
|
||||||
|
fi
|
||||||
|
if [ ! -n "${BULLETTRAIN_RUST_PREFIX+1}" ]; then
|
||||||
|
BULLETTRAIN_RUST_PREFIX="🦀"
|
||||||
|
fi
|
||||||
|
|
||||||
# Kubernetes Context
|
# Kubernetes Context
|
||||||
if [ ! -n "${BULLETTRAIN_KCTX_BG+1}" ]; then
|
if [ ! -n "${BULLETTRAIN_KCTX_BG+1}" ]; then
|
||||||
BULLETTRAIN_KCTX_BG=yellow
|
BULLETTRAIN_KCTX_BG=yellow
|
||||||
@@ -529,6 +541,15 @@ prompt_go() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Rust
|
||||||
|
prompt_rust() {
|
||||||
|
if [[ (-f Cargo.toml) ]]; then
|
||||||
|
if command -v rustc > /dev/null 2>&1; then
|
||||||
|
prompt_segment $BULLETTRAIN_RUST_BG $BULLETTRAIN_RUST_FG $BULLETTRAIN_RUST_PREFIX" $(rustc -V version | cut -d' ' -f2)"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# Kubernetes Context
|
# Kubernetes Context
|
||||||
prompt_kctx() {
|
prompt_kctx() {
|
||||||
if [[ ! -n $BULLETTRAIN_KCTX_KCONFIG ]]; then
|
if [[ ! -n $BULLETTRAIN_KCTX_KCONFIG ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user