From 431b7b719f94c2b702447dff51674e38a5d789db Mon Sep 17 00:00:00 2001 From: David Todd Date: Thu, 22 Jun 2017 12:21:58 -0500 Subject: [PATCH] Add basic install script --- install.sh | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..a98158c --- /dev/null +++ b/install.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +# This file will attempt to automatically configure and install my dotfiles +# This assumes that the following are already installed, perhaps we will attempt to auto-install them in the future +# tmux +# vim +# zsh +# curl +# git + +# First things first, install oh-my-zsh +echo "Installing Oh-My-ZSH" +sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" + +echo "Overriding ~/.zshrc. A backup can be found at ~/.zshrc.backup" +mv ~/.zshrc ~/.zshrc.backup +ln -s ~/dotfiles/shell/zshrc ~/.zshrc + +echo "Overriding ~/.bashrc. A backup can be found at ~/.bashrc.backup" +mv ~/.bashrc ~/.bashrc.backup +ln -s ~/dotfiles/shell/bashrc ~/.bashrc + +echo "Installing tmux config" +ln -s ~/dotfiles/tmux.conf ~/.tmux.conf + +echo "Installing VIM Pathogen" +mkdir -p ~/.vim/autoload ~/.vim/bundle +curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim + +echo "Installing VIM Sensible" +cd ~/.vim/bundle +git clone git://github.com/tpope/vim-sensible.git + +echo "Installing VIM config" +ln -s ~/dotfiles/vimrc ~/.vimrc + +echo "Changing default shell to ZSH" +chsh -s /usr/bin/zsh + +echo "Install done." +echo "Check tmux, vim, and your shell to verify everything is correct" +echo "you may need to launch a new instance of your shell" \ No newline at end of file