My dotfiles are managed with rcm. The thoughtbot blog post for rcm
is here.
Instructions from the rcm
README.
# install rcm
brew tap thoughtbot/formulae
brew install rcm
sudo add-apt-repository ppa:martin-frost/thoughtbot-rcm
sudo apt-get update
sudo apt-get install rcm
Now that I have rcm
, clone my dotfiles.
git clone https://github.com/curtisalexander/dotfiles.git ~/code/dotfiles
After cloning, copy the rcrc.
cp ~/code/dotfiles/rcrc ~/.rcrc
Symlink the cloned directory.
ln -s ~/code/dotfiles/ ~/.dotfiles
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 rc file to the ~/.dotfiles
directory.
mkrc ~/.netrc
After adding to the ~/.dotfiles
directory, create the appropriate symlink.
rcup -v