Skip to content

Commit

Permalink
zsh: removed krew and added kubectx and kubens
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr1215 committed Feb 16, 2020
1 parent 694a8d9 commit ac6f704
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ And one is a fancy image for *zsh* with more tools preinstalled:
- `helm` - Kubernetes package manager
- `okteto` - development platform for Kubernetes applications
- `k9s` - cluster monitoring tool
- `krew` - Kubernetes plugin manager
- `kubectx` - easily switch between Kubernetes contexts
- `kubens` - easily switch between Kubernetes namespaces
- `tmux` based on highly customized, [great repo from samoshkin](https://github.com/samoshkin/tmux-config)
- popular tools: `curl, wget, git`
- useful aliases
Expand Down
6 changes: 0 additions & 6 deletions zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,3 @@ eval $(dircolors -p | sed -e 's/DIR 01;34/DIR 01;36/' | dircolors /dev/stdin)
export KUBECONFIG=$HOME/.kube/config

PATH=$HOME/.local/bin:$PATH
PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"

[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
kcdebug() { kubectl run -i --rm --tty debug --image=busybox --restart=Never -- sh }


13 changes: 10 additions & 3 deletions zsh/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,20 @@ echo '[STEP 5] Installing stern'
mv stern_linux_amd64 /usr/local/bin/stern
)

echo '[STEP 6] Installing Okteto for local development'
echo '[STEP 6] Installing kubectx and kubens - quickly switch kubernetes context and namespace'
(
git clone https://github.com/ahmetb/kubectx /opt/kubectx && \
ln -s /opt/kubectx/kubectx /usr/local/bin/kubectx && \
ln -s /opt/kubectx/kubens /usr/local/bin/kubens
)

echo '[STEP 7] Installing Okteto for local development'
curl https://get.okteto.com -sSfL | sh

echo '[STEP 7] Install tmux with cool customizations'
echo '[STEP 8] Install tmux with cool customizations'
git clone https://github.com/samoshkin/tmux-config.git
./tmux-config/install.sh

echo '[STEP 8] Setting zsh as default shell'
echo '[STEP 9] Setting zsh as default shell'
chsh -s $(which zsh)

0 comments on commit ac6f704

Please sign in to comment.