Skip to content

rosvik/dotfiles

Repository files navigation

Dotfiles 🎉

This is my very own dotfile repo for keeping track of configurations across systems. I try to keep OS specific settings seperate. You're welcome to use this repo for for inspiration, and copy whatever you want.

What's a dotfile?

noun: A file or directory whose name begins with a dot (period or full stop), typically hidden from view.

User-specific application configuration is traditionally stored in so called dotfiles. It is common practice to track dotfiles with a version control system such as Git to keep track of changes and synchronize dotfiles across various hosts.

If you want to create your own dotfile repo, I recommed reading this.

Installation

Disclaimer: You probably shouldn't. These config files contain lots of settings that might only work on my machine™. They are meant to replace the config files that are already on your computer, so things will probably break.

  1. The dotfiles will be placed relative to ~/, so make sure you are logged in with the right user, or change the clean value in the install-[OS].conf.yaml file.
  2. Clone this repo to a place where you want to keep it permanently. A symlink to the folder will be placed at ~/.dotfiles.
  3. Run ./install

Install macOS software

To install some initial tools, brew formulae and casks, run install-macos-software.sh

When running or updating the script, keep in mind:

  • It is safe to run several times.
  • It does not require dotfiles to be installed, but some of the software requires setup from dotfiles to work properly.

Some version managers are installed instead of specific languages:

  • node: nvm install --lts && nvm use --lts
  • python: pyenv install 3.9 && pyenv global 3.9
  • ruby: rbenv install 2.7.6 && rbenv global 2.7.6

Sublime Text 3

To install the config files for Sublime Text 3, a few additional steps is required.

  1. Install Sublime Text 3
  2. Remove the User folder (Located at ~/Library/Application Support/Sublime Text 3/Packages/User on macOS).
  3. Run ./install
  4. Make sure Package Control is installed

Credits

I use Dotbot by Anish Athalye to handle installation: https://github.com/anishathalye/dotbot