Set up your dotfiles, config files

Sometimes your computer explodes. Sometimes your roommate spills water on it.

If you keep your config files uploaded to github/gitlab, you can avoid recreating your dotfiles (.vimrc, .bash_profile, .sh, .zshrc) and reconfiguring every laptop and virtual machine you encounter.

* this is assuming you have already version controlled your configs (examples: bash, vim)

Step 1: Upload your config to Github

Step 2: Encounter a new computer

Step 3: Download your configs immediately and set up your symlinks

set up .vimrc

cd && git clone https://github.com/theptrk/.vim

ln -s ~/.vim/vimrc ./vimrc

Enjoy your fd mapped to <Esc>

set up .bash_profile

cd && git clone https://github.com/theptrk/.bash

ln -s ~/.bash/bash_profile ./bash_profile

Enjoy using l to see all files, gs for git status, bp for bash_profile and bpr for reloading bash_profile

TODO: create a startup script to download these and symlink it appropriately. How though?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s