Skip to content

Instantly share code, notes, and snippets.

@tulexx
tulexx / install_dotfiles.sh
Last active August 31, 2020 18:53
Install dotfiles
#!/usr/bin/env bash
shopt -s expand_aliases
DOTFILES_DIR="$HOME/.dotfiles"
BACKUP_DIR="$HOME/dotfiles.bak"
if [ ! -d "$DOTFILES_DIR" ]; then
echo "Cloning dotfiles"
git clone --bare -q git@github.com:tulexx/.dotfiles.git "$DOTFILES_DIR"