copy files instead of symlink.

This commit is contained in:
Les Vegetables 2019-07-13 18:20:08 +00:00
parent 49fb503adb
commit 222649c998
1 changed files with 17 additions and 16 deletions

33
init.sh
View File

@ -1,23 +1,24 @@
rm ~/.vim/ -rf DOTFILE_DIR=$HOME/dotfiles
rm ~/.vim/autoload/ -rf rm $HOME/.vim/ -rf
rm ~/.vim/bundle/ -rf rm $HOME/.vim/autoload/ -rf
rm $HOME/.vim/bundle/ -rf
mkdir ~/.vim mkdir $HOME/.vim
mkdir ~/.vim/autoload mkdir $HOME/.vim/autoload
mkdir ~/.vim/bundle mkdir $HOME/.vim/bundle
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim curl -LSso $HOME/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
git clone https://github.com/ctrlpvim/ctrlp.vim.git ~/.vim/bundle/ git clone https://github.com/ctrlpvim/ctrlp.vim.git $HOME/.vim/bundle/ctrlp.vim
git clone https://github.com/jpalardy/vim-slime.git ~/.vim/bundle/ git clone https://github.com/jpalardy/vim-slime.git $HOME/.vim/bundle/vim-slime
ln -sf $(pwd)/dotfiles/.vimrc ~/.vimrc cp $DOTFILE_DIR/dotfiles/.vimrc $HOME/.vimrc
echo ".vimrc symlinked" echo ".vimrc copied"
ln -sf $(pwd)/dotfiles/.gitconfig ~/.gitconfig cp $DOTFILE_DIR/dotfiles/.gitconfig $HOME/.gitconfig
echo ".gitconfig symlinked" echo ".gitconfig copied"
ln -sf $(pwd)/dotfiles/.bash_profile ~/.bash_profile cp $DOTFILE_DIR/dotfiles/.bash_profile $HOME/.bash_profile
echo ".bash_profile symlinked" echo ".bash_profile copied"
source ~/.bash_profile source $HOME/.bash_profile