-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
13 additions
and
13 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 |
---|---|---|
|
@@ -19,6 +19,19 @@ do | |
esac | ||
done | ||
|
||
# Clone dotfiles | ||
bold "Cloning dotfiles repo" | ||
grep -sqxF ".dotfiles" ~/.gitignore || echo ".dotfiles" >> ~/.gitignore | ||
if [[ ! -d ~/.dotfiles ]]; then | ||
git clone -q --bare [email protected]:mortenfyhn/dotfiles.git ~/.dotfiles | ||
dots() { git --git-dir="$HOME"/.dotfiles/ --work-tree="$HOME" "$@"; } | ||
dots checkout --force | ||
dots config --local status.showUntrackedFiles no | ||
dots config --local --add remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" | ||
dots fetch | ||
fi | ||
echo "Done" | ||
|
||
if [[ "$headless" = false ]] | ||
then | ||
# Add Vivaldi repo | ||
|
@@ -155,19 +168,6 @@ font_dir=$(mktemp -d) | |
git clone --quiet --depth=1 https://github.com/powerline/fonts.git "$font_dir" && "$font_dir/install.sh" | ||
echo "Done" | ||
|
||
# Clone dotfiles | ||
bold "Cloning dotfiles repo" | ||
grep -sqxF ".dotfiles" ~/.gitignore || echo ".dotfiles" >> ~/.gitignore | ||
if [[ ! -d ~/.dotfiles ]]; then | ||
git clone -q --bare [email protected]:mortenfyhn/dotfiles.git ~/.dotfiles | ||
dots() { git --git-dir="$HOME"/.dotfiles/ --work-tree="$HOME" "$@"; } | ||
dots checkout --force | ||
dots config --local status.showUntrackedFiles no | ||
dots config --local --add remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" | ||
dots fetch | ||
fi | ||
echo "Done" | ||
|
||
# Load dconf settings | ||
bold "Load MATE desktop environment settings" | ||
if command -v dconf > /dev/null | ||
|