Skip to content

Instantly share code, notes, and snippets.

@mactep
Last active February 27, 2023 16:44
Show Gist options
  • Save mactep/f5592f64e2f8c359a9d2da07c9d0f5de to your computer and use it in GitHub Desktop.
Save mactep/f5592f64e2f8c359a9d2da07c9d0f5de to your computer and use it in GitHub Desktop.
Migrating dotfiles no new environment
git clone --bare git@github.com:mactep/dotfiles.git $HOME/.dotfiles
function dotfiles {
git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@
}
dotfiles checkout
dotfiles config status.showUntrackedFiles no
dotfiles config core.worktree $HOME # to help vim-fugitive work correctly
echo "alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'" >> ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment