copy files instead of symlink.
This commit is contained in:
parent
49fb503adb
commit
222649c998
33
init.sh
33
init.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue