Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installer #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 35 additions & 9 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,35 @@
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
git clone https://github.com/Abdulwahaab710/dotFiles
ln -s ./dotFiles/.vimrc ~/.vimrc
ln -s ./dotFiles/.vimrc_c++ ~/.vimrc_c++
ln -s ./dotFiles/.vimrc_python ~/.vimrc_python
ln -s ./dotFiles/.vimrc_java ~/.vimrc_java
ln -s ./dotFiles/myFunctions.vim ~/myFunctions.vim
vim -c 'so %|PlugInstall' ~/.vimrc
#/bin/bash

# installing vim plug
echo -ne ">> Installing vim plug\r"
sleep 1
# curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
# https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

echo -ne ">> \r"
echo -ne ">> clone the dot files directory\r"
sleep 1
# git clone https://github.com/Abdulwahaab710/dotFiles

# backing up vim
echo -ne ">> \r"
echo -ne ">> Backing up vim\r"
sleep 1
# backupDir=$($HOME)/dotFilesBackup
# mkdir -p $backupDir
# mv $HOME/.vim $backupDir/.vim

# Linking dotFiles
dotFiles=".vimrc .vimrc_c++ .vimrc_java .zshrc .khdrc .kwm myFunctions.vim"
for dotFile in $dotFiles;
do
echo -ne ">> \r"
echo -ne ">> Linking "$dotFile"\r"
sleep 1
# ln -s ./dotFiles/$dotFile $dotFile
done

echo -ne ">> \r"
echo -ne ">> Installing vim plugins\r"
sleep 1
# vim -c 'so %|PlugInstall|qa' ~/.vimrc