This repository contains following personal configuration files of mine:
- dotfiles managed by Homesick
- definition of packages to install via Homebrew & Ruby Gems
- custom Oh my ZSH theme Solar Panels
- custom OS X Terminal theme Solar Panels
- two custom keyboard layouts Lupulus CZ and Lupulus EN
The following guide describes how to apply this configuration while setting up an OS X computer from scratch.
Step 1: Oh My ZSH
$ curl -L http://install.ohmyz.sh | sh
Step 2: Homebrew
Install Homebrew:
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Tap homebrew-bundle:
$ brew tap Homebrew/bundle
Install packages defined in the Brewfile from this repository:
$ ./packages/brew-bundle.sh
Install rbenv:
$ rbenv install 2.0.0-p195
$ rbenv global 2.0.0-p195
Since rbenv
is not yet loaded using .zshrc
it is necessary to load it manually in the shell:
$ if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
$ export PATH="~/.rbenv/shims:$PATH"
Install Bundler:
$ gem install bundler
$ rbenv rehash
And finally install gems defined in the Gemfile in this repository. Make sure Xcode is installed, because some brews may depend on it.
$ bundle install
$ rbenv rehash
Step 4: Symlinking Dotfiles using Homesick
Create a symlink from Homesick's configuration directory (~/.homesick/repos/dotfiles
) to the local clone of this repository. When updating dotfiles, the changes are actually made to that local repository.
$ ln -s <path-to-this-repository> ~/.homesick/repos/dotfiles
Apply the symlinks. When asked to override an existing directory, type n
. This is a bug in Homesick.
$ homesick symlink
$ source ~/.zshrc
Install the font Menlo for Powerline
e.g. from this Gist and import Solar Panels.terminal
in the Terminal’s preferences.
First copy the keyboard layouts from this repository to ~/Library/Keyboard Layouts
using following script:
$ ./keyboard/install.sh
Then add both custom keyboard layouts in System Preferences > Keyboard > Input Sources
. In order to remove all other system keyboard layouts further steps are necessary. Copy the current keyboard layout preferences:
$ cp ~/Library/Preferences/com.apple.HIToolbox.plist /tmp
$ open /tmp/com.apple.HIToolbox.plist
Manually remove the entries for system keyboard layouts under the key AppleEnabledInputSources
and copy the new version of the preference files to its original location:
$ cp /tmp/com.apple.HIToolbox.plist ~/Library/Preferences/
Finally restart the computer.
Lukas Kubanek // lukaskubanek.com // @kubanekl