Based on https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/.
See also https://matt.sh/setup-2021-late for extra things worth adding.
-
Install zsh and vim
-
Use
chsh
to change your default shell to zsh, or add 'exec zsh' to the end of~/.profile
or~/.bashrc
if you can't -
(Optional) Install powerline plugin for fancy fonts
-
Add system-specific path modifications (e.g. adding miniconda installation
. ~/miniconda3/etc/profile.d/conda.sh
) to .zshrc -
(Optional) Install fd
-
Add
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
to/.zshrc
, log in and out to confirm the alias got set. -
Run the following:
echo ".dotfiles" >> .gitignore
git clone --bare git@github.com:mwcvitkovic/dotfiles.git $HOME/.dotfiles
dotfiles checkout
docfiles config --local status.showUntrackedFiles no
- Install Vundle and vim plugins:
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qall
Use dotfiles
instead of git
as you normally would, noting that new files aren't shown when running dotfiles status
.