From fd2eb0843d34381211028769930894c76c1ebc2c Mon Sep 17 00:00:00 2001 From: AdeAttwood Date: Sun, 22 May 2016 10:34:00 +0100 Subject: [PATCH] Compleate the unix install file of all the vim plugins --- README.md | 7 ++++++- install/install_unix.sh | 14 +++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) mode change 100644 => 100755 install/install_unix.sh diff --git a/README.md b/README.md index 8f8843a..94e73a8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,9 @@ -Install +Install Unix +Warning this install will override any dotfiles and the full vim bundle directory! +``` git clone https://github.com/AdeAttwood/Dotfiles.git ~/.dotfiles +chmod +x ~/.dotfiles/install/install_unix.sh +~/.dotfiles/install/install_unix.sh +``` diff --git a/install/install_unix.sh b/install/install_unix.sh old mode 100644 new mode 100755 index 7915782..54a9ff1 --- a/install/install_unix.sh +++ b/install/install_unix.sh @@ -10,8 +10,16 @@ ln -sf ~/.dotfiles/dotfiles/Xresources ~/.Xresources # Link to the tmuxinator dir ln -sf ~/.dotfiles/dotfiles/tmuxinator ~/.tmuxinator -# Make vim dir tree -mkdir ~/.vim/autoload ~/.vim/bundle/ -# Link to vim autoload plugin +# Link to vim plugin autoloader +mkdir -p ~/.vim/autoload ln -sf ~/.dotfiles/dotfiles/vim/autoload/pathogen.vim ~/.vim/autoload/pathogen.vim +# Install vim plugins +rm -rf ~/.vim/bundle +mkdir -p ~/.vim/bundle +cd ~/.dotfiles +git submodule init +git submodule update +ln -sf ~/.dotfiles/dotfiles/vim/bundle/* ~/.vim/bundle +cd ~/ +echo "All dotfiles have been installed"