First I install some apps. I try to use the AppStore for everything if I can, buth unfortunately that’s not possible. YMMV.
- Slack
- Tweetbot
- CopyClip 2
- Xcode
- Fantastical 2
- CopyClip 2 Helper for “paste directly” feature
- Emacs
- Skype
- F.Lux
- OpenPGP for OS X
- RescueTime
- VirtualBox
While installs are running I update preferences. (I try to manage with as few changes from the defaults as possible, to make my life simpler.)
- Mark Novel the default profile
- Text tab:
- Set default text size 14pt
- Set the font to
Menlo
- Shell tab: change “When the shell exits” drop-down to “Close if shell exited cleanly”
- Keyboard tab: tick “Use Option as Meta key”
- Shortcuts tab:
- Change “Press Tab to move keyboard focus between” to “All controls”
- Under “Mission Control” turn off the
^ <-and^ ->shortcuts for “Move left a space” and “Move right a space”
- Tick “Show Input menu in menu bar”
- Add Dvorak input source
- Date & Time tab: Use time.euro.apple.com
- Clock tab: Tick “Show the day of the week”
If I can, I copy the entire ~/.ssh directory from the previous/other
machine. If not, I have to additionally add the key to my GitHub account.
git clone [email protected]:stig/.emacs.d.gitAt this point I can launch Emacs using its full path:
/Applications/Emacs.app/MacOS/Emacs. My .emacs.d/init.el should
install all required (and some optional) packages automatically.
Note: once this is done I can open this file from a gist by typing C-x
g l. From there on in I do the rest of the setup by executing the code
snippets directly from this buffer using Org Babel. Place the cursor
over any shell example and hit C-c C-c to try it.
For some reason Emacs’ ansi-term mode displays some “weird characters”.
To fix this, copy ansi-term.ti to somewhere locally and run tic on it to
create .terminfo:
curl 'https://gist.github.com/stig/0c8bc5aeb8602cdb45de#file-ansi-term-ti' > /tmp/ansi-term.ti
tic -o ~/.terminfo /tmp/ansi-term.tiInstall Oh-My-ZSH:
git clone git://github.com/robbyrussell/oh-my-zsh.git .oh-my-zshInstall my .zshrc (backing up any existing one, if present):
git clone [email protected]:stig/.zsh.d.git
cp ~/.zshrc ~/.zshrc.orig
ln -s .zsh.d/.zshrcSet Zsh as my shell:
chsh -s /bin/zshInstall Homebrew into $HOME:
mkdir -p .homebrew
curl -L https://github.com/Homebrew/homebrew/tarball/master | tar xz --strip 1 -C .homebrewNow update brew:
brew updatebrew install the_silver_searcher trash editorconfig multimarkdownUntil recently I relied heavily on multimarkdown for preview in
markdown-mode, but I have moved to use org-mode by default instead
now.
brew install aspell --with-lang-ukThis requires a bit of hackery until my patch to make csshx behave in Zsh is merged.
brew edit csshxNow, replace the head link with:
https://github.com/stig/csshx.git
Then install with:
brew install csshx --HEADWrite config files:
touch ~/.clusters
test -f ~/.csshxrc && mv ~/.csshxrc{,.orig}
echo 'extra_cluster_file=~/.clusters' > ~/.csshxrcNote: A full Xcode installation is required.
brew install graphviz --with-app
sudo brew linkapps graphviz