This repo contains some of the stuff from my home directory on most machines (primarily Mac machines) I use.
Included are my basic config files and a bin directory that I typically add to
my PATH
with various tools & utilities.
This was inspired by a number of talks at Polyglot 2013, as well as the discussion at:
I used to have a script (link_in_homedir.py
) that symlinked everything from this
repo to my actual home directory. The thing I found though is that there's
always machine specific config that makes that difficult, and I'd end up just
copying stuff from my checked out copy of this repo to my home directory. The
script is still around for inspiration, but is very much deprecated now.
There are a handful of directories:
/dotfiles
- contains all hidden files that normally go in my root home directory (think things like.bashrc
,.gitconfig
, etc)/bin
- a handful of various utilities & scripts to make life easier. I usually put this into my PATH./.git-templates
- some handy Git related hooks & such./.vscode
- some templates for tasks.json & settings files for the best editor out there/iterm
- I use iTerm2 as my terminal of choice. Sometimes I export my settings for it to this directory
Most of these directories should be considered starting points for setting stuff up. Many of the files within them have to be tweaked to work for a specific machine.
There's various Python utilities required for some of the scripts in bin. Make sure you have a decent version of Python and pip installed.
I use iTerm2 as my terminal of choice,
and my config can be found in iterm/
This can be restored by following: https://gitlab.com/gnachman/iterm2/-/issues/8029
I've also blogged about my iterm setup: https://www.codependentcodr.com/iterm2-setup.html#iterm2-setup
Also very important: make sure you install the shell integration: https://iterm2.com/documentation-shell-integration.html
These are some other apps I install whenever I have to set up a new Mac.
The best package manager: https://brew.sh/
Install via install_brew_pkgs.sh
Install via install_brew_pkgs.sh
My editor of choice: https://code.visualstudio.com/
My 2nd editor of choice, LOL: https://www.sublimetext.com/
As well, I add the following keymappings (open "keybindings" in the command pallette):
[
{ "keys": ["super+shift+k"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["alt+up"], "command": "swap_line_up" },
{ "keys": ["alt+down"], "command": "swap_line_down" },
{ "keys": ["alt+shift+up"], "command": "duplicate_line" },
{ "keys": ["alt+shift+down"], "command": "duplicate_line" }
]
Amphetamine: https://itunes.apple.com/ca/app/amphetamine/id937984704?mt=12
sudo gem install lolcat
Settings are in apple/Rectangle/RectangleConfig.json
https://apps.apple.com/us/app/activity-timer/id808647808
https://matthewpalmer.net/horo-free-timer-mac/
https://bjango.com/mac/istatmenus/
Install via install_brew_pkgs.sh
For that nice prompt goodness: https://starship.rs/
Install via install_brew_pkgs.sh
Then symlink (or copy) .config/starship.toml
to ~/.config
.
I've also blogged about my Starship setup: https://www.codependentcodr.com/using-starship-for-terminal-prompt-goodness.html
All installed with Pipx. Use the supplied install_py_pkgs.sh
script.
./install_py_pkgs.sh
There's definitely other things I install, but that's a good start.
Maybe some of this could be automated/scripted?
Show Hidden Files
Show hidden files, in terminal:
defaults write com.apple.Finder AppleShowAllFiles true
defaults write -g AppleShowAllFiles -bool true
killall Finder
Since it's horrible: https://osxdaily.com/2018/08/30/disable-touch-bar-macbook-pro/
I'm not the first to throw my config/setup stuff into a source control repository, others to look at for inspiration: