Skip to content

Instantly share code, notes, and snippets.

@thiphariel
Last active December 17, 2023 20:17
Show Gist options
  • Save thiphariel/ec670dbefd933f83a7e470c3cf382d1a to your computer and use it in GitHub Desktop.
Save thiphariel/ec670dbefd933f83a7e470c3cf382d1a to your computer and use it in GitHub Desktop.
Personal dotfiles

Create alias on .zshrc

alias dfl="g --git-dir=$HOME/.dotfiles/ --work-tree=$HOME"

Create the folder to store the actual files and push them to github

mkdir ~/.dotfiles 
dfl init
dfl branch -M main
dfl config --local status.showUntrackedFiles no
dfl add "FILE"
dfl commit -m "message"
dfl remote add origin [email protected]:thiphariel/dotfiles.git
dfl push origin main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment