dotfiles
dotfiles copied to clipboard
when you work on multiple machines, you'll git them too
These are my dotfiles
fish
After years of using zsh with a cargo-culted configuration, I gave up on it and switched to the Friendly Interactive Shell, aka fish. It has a simplified scripting language, has sane defaults, and straightforward auto-complete features. There's not much to see in the config file, because fish doesn't believe in configurability. I'm using oh my fish to manage most of the config.
gitconfig
I used to use the git command line a lot. Then I discovered Magit, then was mostly satisfied with the built-in tools in VSCode. There's still a lot of aliases in there, here are the ones I still use:
-
amend
:commit --amend
after an accidentalcommit -amend
and instead of--amend
that took an hour to undo, I started this list. -
fold
:merge --no-ff
takes some branches and merges them in, keeping their full branch and commit history. -
goto <refspec>
:reset --hard <refspec>
hard resets to the given refspec -
undo
:reset --soft HEAD^
Revert a commit, but leave its contents as staged.
Install
-
on mac:
bash -c "$(curl -fsSL https://github.com/mattly/dotfiles/blob/master/install/mac_bootstrap)"
This gets you homebrew, a pub key to put on GitHub, git, this repository cloned, the config files symlinked, .emacs.d, and fish as the default shell.
From there,
brew bundle
the desired files ininstall/
Using the Magic Trackpad in Windows
https://www.labnol.org/software/apple-magic-trackpad-with-windows/14158/
-
Download this patch from the Apple website but don’t run it yet. It’s an executable file but it won’t run on your Windows Desktop since it is intended only for users who are running Windows inside a Mac desktop using Boot Camp.
-
Download a copy of 7-zip and extract the contents of the exe file that you’ve downloaded in the previous step
-
This will create a new file called “BootCampUpdate32.msp” – extract the contents of this file as well using 7-zip again.
-
You’ll now have several sub-folders that are named like BootCamp3135*. One of these folders will have a file called “Binary.AppleWirelessTrackpad_Bin” – just add a .exe extension to this file and then double-click to run it.
This will install the Apple Wireless Trackpad driver on your Windows machine without requiring Boot Camp and you should now be able to pair the Magic Trackpad with the PC.
The Trackpad device driver is available for Windows XP, Vista and Windows 7 computers. As some readers pointed out, the same approach can be used to get your Magic Mouse work with Windows.