mwcvitkovic / dotfiles

Because the world definitely needs more of these...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 on a new machine

  1. Install zsh and vim

  2. Use chsh to change your default shell to zsh, or add 'exec zsh' to the end of ~/.profile or ~/.bashrc if you can't

  3. (Optional) Install powerline plugin for fancy fonts

  4. Add system-specific path modifications (e.g. adding miniconda installation . ~/miniconda3/etc/profile.d/conda.sh) to .zshrc

  5. (Optional) Install fd

  6. 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.

  7. 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
  1. Install Vundle and vim plugins:
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qall 

Edit

Use dotfiles instead of git as you normally would, noting that new files aren't shown when running dotfiles status.

About

Because the world definitely needs more of these...


Languages

Language:Python 47.1%Language:Shell 45.7%Language:Vim Script 6.4%Language:Makefile 0.3%Language:Roff 0.3%Language:Perl 0.2%Language:Ruby 0.1%Language:C 0.0%