Fix bad errors
This commit is contained in:
parent
1874f5691f
commit
0d469f6989
|
@ -58,8 +58,8 @@ def --env kube [name?: string@_kube_kubes] {
|
|||
alias kns = k9s -n all
|
||||
|
||||
# k9s shortcut for each cluster
|
||||
alias zeus = k9s --kubeconfig ($env.HOME + '/.kubes/zeus/config')
|
||||
alias safir = k9s --kubeconfig ($env.HOME + '/.kubes/safir/config')
|
||||
alias zeus = k9s -n all --kubeconfig ($env.HOME + '/.kubes/zeus/config')
|
||||
alias safir = k9s -n all --kubeconfig ($env.HOME + '/.kubes/safir/config')
|
||||
|
||||
# start minikube with test kube
|
||||
def "minikube start" [] {
|
||||
|
|
|
@ -74,8 +74,9 @@ def create_left_prompt [] {
|
|||
|
||||
# Current kube
|
||||
let kube_color = ansi cyan_bold
|
||||
let kube = if ("~/.kubes/current-cube" | path exists) {
|
||||
let kube_name = open ~/.kubes/current-cube | path dirname | path basename
|
||||
|
||||
let kube = if ("KUBECONFIG" in $env) {
|
||||
let kube_name = $env.KUBECONFIG | path dirname | path basename
|
||||
[$kube_color, " ‹", $kube_name, "›"] | str join
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue