From c66e0e5723bd9858d50505215515f857780bb222 Mon Sep 17 00:00:00 2001 From: Jacob Bohanon Date: Thu, 22 Sep 2022 20:39:01 -0400 Subject: [PATCH] add vim-plug and proper neovim --- init.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 init.sh diff --git a/init.sh b/init.sh new file mode 100644 index 0000000..351507d --- /dev/null +++ b/init.sh @@ -0,0 +1,32 @@ +#Install zsh +#Install neovim +#Install ripgrep +#Install fd +sudo add-apt-repository ppa:neovim-ppa/stable +sudo apt update && sudo apt install -y zsh neovim ripgrep fd-find +#Install oh-my-zsh +sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" +#Install oh-my-zsh plugins +git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions +git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting +#install vim-plug +sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' +#Clone dotfiles +cd ~ && git clone https://github.com/jbohanon/.dotfiles +#Make directories & symlinks +mkdir $HOME/.config +ln -s $HOME/.dotfiles/zsh $HOME/.config/zsh +ln -s $HOME/.dotfiles/nvim $HOME/.config/nvim +ln -s $HOME/.config/nvim/.vimrc $HOME/.vimrc +ln -s $HOME/.config/zsh/.zshrc $HOME/.zshrc +#Install powerline-fonts +sudo apt install fonts-powerline +#Install starship +curl -sS https://starship.rs/install.sh | sh +#Install mygvm +mkdir $HOME/go +mkdir -p $HOME/.go/downloads +ln -s $HOME/.dotfiles/zsh/mygvm /usr/local/bin/mygvm + +#Install Go +mygvm go1.18.6