Skip to content

Commit

Permalink
Clone early
Browse files Browse the repository at this point in the history
Fix #65
  • Loading branch information
mortenfyhn committed Jun 21, 2024
1 parent f3ec491 commit 65a4818
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .config/dotfiles/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 65a4818

Please sign in to comment.