Skip to content

Commit

Permalink
fixes prompt, namespace display bug
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Hausenblas <hausenbl@amazon.com>
  • Loading branch information
mhausenblas committed Feb 21, 2020
1 parent 361e4cc commit 7a3c5a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions envs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"fmt"
"os"
"strings"
"sync"
)

Expand Down Expand Up @@ -154,6 +155,7 @@ func setprompt() {
warn("Can't determine namespace")
namespace = ""
}
namespace = strings.TrimSuffix(namespace, "pod \"ns\" deleted")
env := currentenv().name
debug(env + " " + context + " " + namespace)
if rl != nil {
Expand Down

0 comments on commit 7a3c5a5

Please sign in to comment.