forked from Piotr1215/kubectl-container
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Piotr Zaniewski
committed
Jan 27, 2020
1 parent
0268933
commit b0cd12a
Showing
3 changed files
with
27 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
#!/bin/bash | ||
echo 'Bootstrap steps start here:' | ||
|
||
echo '[STEP 1] Creating directory for kubectl config' | ||
mkdir /root/.kube | ||
|
||
echo '[STEP 2] Installing k9s awesomeness' | ||
( | ||
set -x && | ||
wget -c https://github.com/derailed/k9s/releases/download/v0.13.4/k9s_0.13.4_Linux_x86_64.tar.gz -O - | tar -xz && | ||
chmod +x k9s && | ||
mv k9s /usr/local/bin/ | ||
) | ||
|
||
echo 'Installing Oh-My-Zsh' | ||
echo '[STEP 3] Installing Oh-My-Zsh' | ||
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended | ||
|
||
echo 'Installing zsh-autosuggestions' | ||
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | ||
echo '[STEP 4] Installing zsh-autosuggestions plugin' | ||
git clone https://github.com/zsh-users/zsh-autosuggestions /root/.oh-my-zsh/custom/plugins/zsh-autosuggestions | ||
|
||
# Add krew to path to call it from kubectl | ||
echo '[STEP 5] Setting zsh as default shell' | ||
chsh -s $(which zsh) |