mirror of https://github.com/einverne/dotfiles.git
				
				
			
				 2 changed files with 12 additions and 5 deletions
			
			
		@ -1,10 +1,16 @@ | 
				
			|||||||
#!/bin/bash | 
					#!/bin/bash | 
				
			||||||
VIMDIR=${1:-$HOME} | 
					VIMDIR=${1:-$HOME} | 
				
			||||||
 | 
					
 | 
				
			||||||
mv $VIMDIR/.vim $VIMDIR/.vim.old | 
					echo "start install, all of your old .vimrc and .vim will be overwritten." | 
				
			||||||
mv $VIMDIR/.vimrc $VIMDIR/.vimrc.old | 
					echo "all your old vim settings will be mv to .vimrc.old & .vim.old" | 
				
			||||||
ln -s $PWD/.vim $VIMDIR/.vim 2> /dev/null | 
					echo -en "Do you want to continue?[y/n]" | 
				
			||||||
cat $PWD/_vimrc > $PWD/.vimrc | 
					read -n 1 use_vim_configs | 
				
			||||||
ln -s $PWD/.vimrc $VIMDIR/.vimrc 2> /dev/null | 
					if [ "$use_vim_configs" == "Y" ] || [ "$use_vim_configs" == "y" ]; then | 
				
			||||||
 | 
						mv $VIMDIR/.vim $VIMDIR/.vim.old | 
				
			||||||
 | 
						mv $VIMDIR/.vimrc $VIMDIR/.vimrc.old | 
				
			||||||
 | 
						ln -s $PWD/.vim $VIMDIR/.vim 2> /dev/null | 
				
			||||||
 | 
						cat $PWD/_vimrc > $PWD/.vimrc | 
				
			||||||
 | 
						ln -s $PWD/.vimrc $VIMDIR/.vimrc 2> /dev/null | 
				
			||||||
 | 
					fi | 
				
			||||||
 | 
					
 | 
				
			||||||
git submodule init && git submodule update | 
					git submodule init && git submodule update | 
				
			||||||
 | 
				
			|||||||
					Loading…
					
					
				
		Reference in new issue