Git Product home page Git Product logo

configuration's Introduction

Configuration

What is this about?

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

Installation

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

Step 3: Ruby & Gems

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

Step 5: Terminal Theme

Install the font Menlo for Powerline e.g. from this Gist and import Solar Panels.terminal in the Terminal’s preferences.

Step 6: Keyboard Layouts

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.

Author

Lukas Kubanek // lukaskubanek.com // @kubanekl

configuration's People

Contributors

lukaskubanek avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.