cloudnativelabs / kube-shell

Kubernetes shell: An integrated shell for working with the Kubernetes
Apache License 2.0
2.38k stars 175 forks source link

kube-shell command not found on mac/zsh #52

Open prateekgogia opened 6 years ago

prateekgogia commented 6 years ago

I am using zsh and Sierra, installed kube-shell using pip - pip install kube-shell

It installed fine and gave me this log at the end -

Successfully installed Pygments-2.2.0 click-6.7 fuzzyfinder-2.1.0 httplib2-0.10.3 kube-shell-0.0.23 kubernetes-2.0.0 oauth2client-4.1.2 prompt-toolkit-1.0.15 wcwidth-0.1.7

After this kube-shell command is not found -

pgogia@VSN00243 ~  kube-shell
zsh: command not found: kube-shell

Running this on macOS Sierra and zsh (5.4.2). What step am I missing?

batizhao commented 6 years ago
sudo find / -name kube-shell
export PATH=xxxxxx
DasyDong commented 6 years ago

sudo find / -name kube-shell kube-shell path is not in zsh, you just find the path and export path to .zshrc file vi .zshrc, add export code , save the file export PATH="$PATH:xxxxx"

make sure it is effective immediately , just last run source .zshrc