Skip to content

Instantly share code, notes, and snippets.

@PI-Victor
Created February 14, 2015 19:14
Show Gist options
  • Save PI-Victor/b36d3da1e3a19b704ac2 to your computer and use it in GitHub Desktop.
Save PI-Victor/b36d3da1e3a19b704ac2 to your computer and use it in GitHub Desktop.
#!/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