-
$ git clone --bare git@github.com:jkugelman/dotfiles.git .dotfiles
Clone the
dotfilesrepository from GitHub. -
$ dotfiles() { git --git-dir="$HOME"/.dotfiles --work-tree="$HOME" "$@"; }
Set up an alias to send Git commands to
.dotfiles, and also set$HOMEas the work tree, while storing the Git state at.dotfiles. -
$ dotfiles config --local status.showUntrackedFiles no
Set a local configuration setting in
.dotfilesto ignore untracked files. -
$ dotfiles checkout
Copy the actual files from the
.dotfilesrepository to$HOME. Git pulls the tracked files out of the compressed database in the Git directory and places them in the work tree.dotfiles checkoutmight fail with a message like:error: The following untracked working tree files would be overwritten by checkout: .bashrc .gitignore Please move or remove them before you can switch branches. AbortingFiles on your computer might have identical locations and names as the files in the
.dotfilesrepo. Git doesn't want to overwrite your local files. Back up the files if they're useful; delete them if they aren't.
(These steps were adapted from The best way to store your dotfiles: A bare Git repository EXPLAINED.)
$ curl -L https://github.com/neovim/neovim/releases/latest/download/nvim.appimage -o ~/.local/bin/nvim
$ chmod +x ~/.local/bin/nvim$ curl -fsSL https://get.docker.com | sudo sh
$ sudo systemctl enable docker