Skip to content

Instantly share code, notes, and snippets.

@mayankshah1607
Created February 28, 2024 07:37
Show Gist options
  • Save mayankshah1607/85c1a89ebea4951053e0917e5a157aeb to your computer and use it in GitHub Desktop.
Save mayankshah1607/85c1a89ebea4951053e0917e5a157aeb to your computer and use it in GitHub Desktop.
Dotfiles setup
#!/usr/bin/env bash
git clone --bare [email protected]:mayankshah1607/dotfiles.git $HOME/dotfiles
# define config alias locally since the dotfiles
# aren't installed on the system yet
function config {
git --git-dir=$HOME/dotfiles/ --work-tree=$HOME $@
}
# checkout dotfiles from repo
config checkout
config config status.showUntrackedFiles no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment