add better symlink
This commit is contained in:
parent
70fc9756ca
commit
49fb503adb
16
init.sh
16
init.sh
|
@ -1,19 +1,23 @@
|
||||||
rm ~/.vim/ -rf
|
rm ~/.vim/ -rf
|
||||||
|
rm ~/.vim/autoload/ -rf
|
||||||
|
rm ~/.vim/bundle/ -rf
|
||||||
|
|
||||||
mkdir ~/.vim
|
mkdir ~/.vim
|
||||||
mkdir ~/.vim/autoload
|
mkdir ~/.vim/autoload
|
||||||
mkdir ~/.vim/bundle
|
mkdir ~/.vim/bundle
|
||||||
|
|
||||||
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
|
curl -LSso ~/.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 ~/.vim/bundle/
|
||||||
git clone https://github.com/jpalardy/vim-slime.git ~/.vim/bundle/
|
git clone https://github.com/jpalardy/vim-slime.git ~/.vim/bundle/
|
||||||
|
|
||||||
rm ~/.vimrc
|
ln -sf $(pwd)/dotfiles/.vimrc ~/.vimrc
|
||||||
ln -s $PWD/dotfiles/.vimrc ~/
|
echo ".vimrc symlinked"
|
||||||
|
|
||||||
rm ~/.gitconfig
|
ln -sf $(pwd)/dotfiles/.gitconfig ~/.gitconfig
|
||||||
ln -s $PWD/dotfiles/.gitconfig ~/
|
echo ".gitconfig symlinked"
|
||||||
|
|
||||||
rm ~/.bash_profile
|
ln -sf $(pwd)/dotfiles/.bash_profile ~/.bash_profile
|
||||||
ln -s $PWD/dotfiles/.bash_profile ~/
|
echo ".bash_profile symlinked"
|
||||||
|
|
||||||
source ~/.bash_profile
|
source ~/.bash_profile
|
||||||
|
|
Loading…
Reference in New Issue