Repository navigation
Added
limon config k8s_ns=1adds the current namespace to the Kubernetes badge,
e.g.(k8s:kind-dev/default), matching what kube-ps1 shows. A context with
no namespace set showsdefault.limon config k8s_danger='*prod*,*-prd'takes comma-separated,
case-insensitive globs and shows a red⚠badge (!withascii=1)
whenever the current context matches one, so a production cluster stands
out the same wayLIMON_ENV=proddoes.
Changed
- The
k8s=1badge no longer forkskubectlto find the context. It reads
the files in$KUBECONFIG(or~/.kube/config) in pure bash, following
kubectl's merge rules, and only falls back tokubectlfor a kubeconfig
written as JSON or flow-style YAML. The 2s cache now also covers "no
context", so the fallback forks at most once every 2 seconds. kube-ps1's
KUBE_PS1_NAMESPACEis used alongsideKUBE_PS1_CONTEXTwhen it is set.
Fixed
limon upgrade beta/limon upgrade devfailed with "remote branch
'origin/dev' not found" on installs made byget-limon.sh. Its shallow
--depth 1clone only tracksmaster, so a plain fetch never brought in
other branches. Limon now fetches the channel's branch explicitly and adds
it to the remote's tracked branches, and reports a branch that is genuinely
missing on the remote separately from a network failure.
Install
curl -fsSL https://raw.githubusercontent.com/faridrasidov/limon/master/get-limon.sh | bashOr download an archive below and run bash limon-1.4.0/install.sh.
Verify a download with sha256sum -c SHA256SUMS --ignore-missing.