/dotfiles

Personal dotfiles

Primary LanguageShellMIT LicenseMIT

dotfiles

My dotfiles are managed with rcm. The thoughtbot blog post for rcm is here.

Getting Started

Get rcm

Instructions from the rcm README.

macOS

# install rcm
brew tap thoughtbot/formulae
brew install rcm

Ubuntu (Windows Subsystem for Linux)

sudo add-apt-repository ppa:martin-frost/thoughtbot-rcm
sudo apt-get update
sudo apt-get install rcm

Get dotfiles

Now that I have rcm, clone my dotfiles.

git clone https://github.com/curtisalexander/dotfiles.git ~/code/dotfiles

Setup dotfiles

After cloning, copy the rcrc.

cp ~/code/dotfiles/rcrc ~/.rcrc

Symlink the cloned directory.

ln -s ~/code/dotfiles/ ~/.dotfiles

Run install scripts

Run the appropriate install script depending upon whether running on MacOS or Ubuntu.

cd bin

# macos
install-dotfiles-macos

# ubuntu
install-dotfiles-ubuntu

The last step in each of the scripts above is to run rcup. This will create symlinks from ~/.dotfiles to your home directory.

Anytime that rcup is run — whether it is after the initial setup or after a regular update — the script hooks/post-up is run.

To create a symlink from ~/.dotfiles to your home directory run the following.

rcup -v

Add a new dotfile

Add a new rc file to the ~/.dotfiles directory.

mkrc ~/.netrc

After adding to the ~/.dotfiles directory, create the appropriate symlink.

rcup -v