Compare commits
2 Commits
85a9762841
...
3673398c08
Author | SHA1 | Date |
---|---|---|
Massaki Archambault | 3673398c08 | |
Massaki Archambault | 2940f72eff |
|
@ -13,3 +13,7 @@ gpg-connect-agent updatestartuptty /bye >/dev/null
|
|||
|
||||
# keychain (for ssh agent)
|
||||
eval $(keychain --eval --quiet --noask --nogui)
|
||||
|
||||
export GOPATH="$HOME/go"
|
||||
export PATH="$PATH:$GOPATH"
|
||||
|
||||
|
|
|
@ -28,6 +28,9 @@ alias browsh="docker run --rm -it browsh/browsh"
|
|||
# kube
|
||||
alias netshoot="kubectl run tmp-shell --rm -i --tty --image nicolaka/netshoot -- /bin/bash"
|
||||
alias kubectl="kubecolor"
|
||||
alias k="kubecolor"
|
||||
alias kctx="kubectl config use-context"
|
||||
alias kns="kubectl config set-context --current --namespace"
|
||||
|
||||
compdef kubecolor=kubectl
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ prompt_cmd() {
|
|||
|
||||
# kubernetes context
|
||||
if which kubectl &>/dev/null; then
|
||||
local kubectl_context="%{$FG[008]%}[$(kubectl config current-context)] "
|
||||
local kubectl_context="%{$FG[008]%}[$(kubectl config current-context)|$(kubectl config view --minify -o jsonpath='{..namespace}')] "
|
||||
fi
|
||||
|
||||
# name@hostname
|
||||
|
|
Loading…
Reference in New Issue