Created
February 14, 2015 19:14
-
-
Save PI-Victor/b36d3da1e3a19b704ac2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
GIT="/usr/bin/git" | |
EMACS="~/.emacs.d/" | |
#check if i have the emacs.d folder already | |
if [ -d "$EMACS" ]; then | |
echo ".emacs.d folder already present in home folder, remove it first, then retry" | |
fi | |
#do we have git, if so clone repo and copy .emacs to home folder | |
if [ -z "$GIT" ]; then | |
echo "You don't have git installed" | |
else | |
echo "Cloning repository" | |
git clone https://github.com/PI-Victor/.emacs.d.git /home/vectra/.emacs.d | |
cp -p ~/.emacs.d/.emacs ~/.emacs | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment