Skip to content

Instantly share code, notes, and snippets.

@Gastove
Last active April 3, 2018 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gastove/42a37ed9f948ee721f3adb42f219c033 to your computer and use it in GitHub Desktop.
Save Gastove/42a37ed9f948ee721f3adb42f219c033 to your computer and use it in GitHub Desktop.
#!/bin/sh
# This repo exists to help me get a few common configs in place -- things I use
# absolutely everywhere. Currently, this means my Emacs and fish shell configs.
EMACS_REPO='git@github.com:Gastove/orary.git'
FISH_REPO='git@gitlab.com:gastove/fish-sauce.git'
echo "Bootstrapping directories..."
# Assure we're in the right place
cd ~/
# Create config dir, Code dir
mkdir -p ~/.config
mkdir -p ~/Code
# Assure no previous configs exist
rm -rf ~/.config/fish
rm -rf ~/.emacs.d
# Pull down repos
echo "Cloning repos..."
git clone "$FISH_REPO" ~/Code/fish-sauce
git clone "$EMACS_REPO" ~/Code/orary
# And link
ln -s ~/Code/fish-sauce ~/.config/fish
ln -s ~/Code/orary ~/.emacs.d
# Set fish as my shell if I can find it
echo "Attempting to switch shells to fish..."
if $(which fish)
then
sudo usermod -s "$(which fish)" "$(whoami)"
fisher
else
echo "Failed to locate fish shell binary; are you sure it's on the PATH?"
fi
echo "Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment