Skip to content

Instantly share code, notes, and snippets.

@alovak
Last active February 21, 2024 11:12
Show Gist options
  • Save alovak/8c51419f156ba9e20b3f422787a4c920 to your computer and use it in GitHub Desktop.
Save alovak/8c51419f156ba9e20b3f422787a4c920 to your computer and use it in GitHub Desktop.
Init .dotfiles
echo "alias config='/usr/bin/git --git-dir=\$HOME/.dotfiles/ --work-tree=\$HOME'" >> ~/.bashrc
git clone --bare https://github.com/alovak/.dotfiles.git $HOME/.dotfiles
git --git-dir=\$HOME/.dotfiles/ --work-tree=\$HOME config --local status.showUntrackedFiles no
echo ".dotfiles repo cloned. Reload bash to use `config` command"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment