Some time ago, my beautiful bash profile was lost in a tragic backup accident, and I was forced to start fresh. With very little memory of what was actually in the original, I am now on a journey to terminal re-enlightenment, and you can follow along.
Before getting into it, some notes:
- I wouldn't actually recommend running this installer unless you want your laptop set up exactly like mine
- This is super mac-specific, and will probably remain as such for a while
To run the installer, you don't have to clone this repo (the installer does that!), just run this command:
/usr/bin/env bash -c "$(curl -fsSL https://raw.githubusercontent.com/timhugh/dotfiles/HEAD/install.sh)"
It will occasionally ask for your password for sudo things, and anything installed using mas
(App Store) will require logging into an Apple account, if you haven't already.
The installer is grouped into packages, represented by each directory in /packages
. The installer will install the base
, office
, and macos
packages by default. For more eccentric setups, the installer can be given other packages as command line arguments:
/usr/bin/env bash -c "$(curl -fsSL https://raw.githubusercontent.com/timhugh/dotfiles/HEAD/install.sh)" <package1> <package2> ...
There are some manual steps after running the installer. Hopefully some of these can be automated later. Skip over ones that aren't relevant, depending on your packages:
- App logins
- 1password login
- Chrome login
- Dropbox login
- Notion calendar login
- Spark login
- Slack login
- Zoom login
- Spotify login
- Rectangle setup (I use the old Spectacle bindings -- old habits)
- Upload generated ssh key to Github (
cat ~/.ssh/github_key.pub | pbcopy
) - Jetbrains settings sync
- Intellij settings sync
- Goland settings sync
- Clion settings sync
- Rubymine settings sync
- Webstorm settings sync
- Default apps
- Set Chrome as default browser
- Set Spark as default mail
- Set Notion Calendar as default calendar
- Configure login items:
- Rectangle
- Mos
In addition to trying to automate some of the manual post-install steps, here are some other things I would like to do automatically (in no particular order):
- Installer should check if the dotfiles repo remote is set before setting it (right now it just sets it every time)
- OS settings I would like to add to packages/macos/settings.install:
- disable clicking on wallpaper to open expose or whatever its called
- dark mode automatically at night
- show battery percentage in menu bar
- set clock to 24hr time
- set display scale to "more space"
- turn off true tone
- The OS settings script could probably check settings before setting them and only restart the dock / ui server if necessary
- The dockutil script could probably check what's in the dock before changing it
- Implement package dependencies
- I actually tried to do this initially and scrapped it to keep things simple, but I think the packages get a little bit too big the way it is now, and there are a lot of cross-cutting dependencies (e.g. a lot of things depend on node). It would be nice to just say "install nvim" and have it install nvim plus all of the tools required for the LSPs, etc
- In the meantime, going to add
.depends
files to packages just to keep track of those dependencies
- zsh autocomplete is case sensitive now because I ditched oh-my-zsh. I think that's the only thing I miss
Previously, all of this configuration was scattered across separate repos and gists:
I finally put in the time to make my bash_profile applicable to my personal laptop and my work laptop, and keeping the disparate repos/gists in sync became a pain point.
There's a little bit of inspiration from JackDanger's apple_store, too, because--let's be honest--I don't actually need to be able to setup a dev environment on a random system at any given moment, but the idea is cool!
Here are some of the excellent resources I've used to build this.
I've also included some fonts, which I've patched with the nerd fonts font-patcher script: