-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ba9c14
commit 5ee77c1
Showing
1 changed file
with
15 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
#!/usr/bin/env bash | ||
# It should be as easy as running this setup file | ||
# You'll probably need to change the remote to be able to push properly | ||
git clone --bare https://gitlab.com/DevonMorris/dotfiles.git $HOME/.dots | ||
function dots { | ||
/usr/bin/env git --git-dir=$HOME/.dots/ --work-tree=$HOME $@ | ||
} | ||
dots reset --hard HEAD | ||
dots config status.showUntrackedFiles no | ||
# Requires git and stow to work properly | ||
|
||
ln -sf "$PWD/scripts" "$HOME/.local/bin/scripts" | ||
if ! command -v git &> /dev/null | ||
then | ||
echo "Please install git" | ||
exit | ||
fi | ||
|
||
if ! command -v stow &> /dev/null | ||
then | ||
echo "Please install stow" | ||
exit | ||
fi | ||
|
||
git clone https://gitlab.com/DevonMorris/dotfiles.git $HOME/.dots | ||
cd $HOME/.dots && stow -vvv -t $HOME --adopt . |