#!/bin/zsh # dotfiles | https://github.com/venkatamutyala/dotfiles sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" rm -rf ~/.oh-my-zsh/custom/ mkdir -p ~/.oh-my-zsh/custom/ curl -o ~/.oh-my-zsh/custom/vm-manage.sh https://raw.githubusercontent.com/venkatamutyala/dotfiles/refs/heads/main/vm-manage.sh chmod +x ~/.oh-my-zsh/custom/vm-manage.sh curl -o ~/.oh-my-zsh/custom/venkatamutyala-functions.zsh https://raw.githubusercontent.com/venkatamutyala/dotfiles/refs/heads/main/venkatamutyala-functions.zsh curl -o ~/.tmux.conf https://raw.githubusercontent.com/venkatamutyala/dotfiles/refs/heads/main/tmux.conf mkdir -p ~/.config/htop/ curl -o ~/.config/htop/htoprc https://raw.githubusercontent.com/venkatamutyala/dotfiles/refs/heads/main/htoprc curl -o ~/.vimrc https://raw.githubusercontent.com/venkatamutyala/dotfiles/refs/heads/main/vimrc curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim # Remove existing plugins line sed -i '/^plugins=(.*)/d' ~/.zshrc # Create a new file with the new plugins line and append the content of the original .zshrc echo "plugins=(git zsh-autosuggestions kubectl zsh-syntax-highlighting you-should-use)" > ~/.zshrc_new cat ~/.zshrc >> ~/.zshrc_new # Replace the old .zshrc with the new one mv ~/.zshrc_new ~/.zshrc mkdir -p ~/.oh-my-zsh/custom/plugins/ git clone --depth 1 --branch 0.8.0 https://github.com/zsh-users/zsh-syntax-highlighting ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting || true git clone --depth 1 --branch v0.7.1 https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions || true git clone --depth 1 --branch 1.10.0 https://github.com/MichaelAquilina/zsh-you-should-use.git ~/.oh-my-zsh/custom/plugins/you-should-use || true source ~/.zshrc omz reload