A simple repo to store my srcipts.
# Prepare
sudo apt install -y vim curl
mkdir ~/git && cd ~/git
# Install git
sudo apt install -y git
# Clone repo
git clone [email protected]:gbarre/MyScripts.git
# Install zsh & colorls (&ruby) & colordiff
sudo apt install -y terminator zsh powerline fonts-powerline zsh-syntax-highlighting ruby ruby-dev ruby-colorize libncurses5-dev libtinfo-dev colordiff xclip
sudo gem install colorls
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install Powerlevel9k theme
git clone https://github.com/bhilburn/powerlevel9k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel9k
# Install Powerlevel10k theme
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k
# Install zsh autocompletion
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
# Install kubectx
git clone [email protected]:ahmetb/kubectx.git
sudo mv kubectx /opt
sudo ln -s /opt/kubectx/kubectx /usr/local/bin/kubectx
sudo ln -s /opt/kubectx/kubens /usr/local/bin/kubens
mkdir -p ~/.oh-my-zsh/completions
chmod -R 755 ~/.oh-my-zsh/completions
ln -s /opt/kubectx/completion/kubectx.zsh ~/.oh-my-zsh/completions/_kubectx.zsh
ln -s /opt/kubectx/completion/kubens.zsh ~/.oh-my-zsh/completions/_kubens.zsh
# Install kubectl
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
# Install fzf
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
# Symlink `.zshrc` in my home
cd && rm .zshrc
ln -s ~/git/MyScripts/zshrc /home/gbarre2/.zshrc
# Symlink `.screenrc` in my home
cd && rm .screenrc
ln -s ~/git/MyScripts/screenrc /home/gbarre2/.screenrc
# Font
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/Hack.zip
mkdir ~/.fonts/nerdFont
unzip Hack.zip -d ~/.fonts/nerdFont
sudo ln -s ~/.fonts/nerdFont /usr/share/fonts/nerdFont
sudo fc-cache -fv
# Install thefuck
sudo apt install -y python3-dev python3-pip python3-setuptools
sudo pip3 install thefuck
# Then configure terminator to use the nerd font
# Enjoy!
- bernes : specifics scripts used @ bernes
- dagobah : backup scripts on dagobah
- functions :
ch
: check my /etc/hosts filedsiVPN
: simple script to (dis)connect VPN @ DSIgitCommitPush
: all in onelanScan
: scan local lanMyNotes
: open VS Code into my notes directoryMyVPN
: (un)set VPN with autocompletion (cf_MyVPNCompletion
in sources)pullMyGits
: simple script to pull all my git repo stored inmyGitScriptsDir
- macos : MacOs scripts
- misc : included files, needed by other scripts
- sources :
_MyVPNCompletion
: add autocompletion forMyVPN
common
: some functions used in others scriptsgclonecd
: clone a git repo andcd
intokubectlFunc
: load/unload kubeconfig for managing k8s cluster => Useless withkubectx
...myBashFunc
: all my personnal functions
p10k.zsh
: oh_my_zsh theme configREADME
: this file :-Dzshrc
: my zsh config, aliases & sourcing files from this repo