Super Awesome OSX Settings
The features included are among others:
- Colored prompt for ZSH.
- Automatic project aliases.
- Ruby on Rails specific aliases.
- RVM support.
Run the following to install the OSX settings:
git clone git://github.com/kevintuhumury/osx-settings.git ~/.osx-settings cd ~/.osx-settings ./script/install
The installation will create a backup of a previous version and symlinks the available dot files.
Git uses your name and email for each commit. You can run the following commands (with your own name and email of course) to globally set these:
git config --global user.name "John Doe" git config --global user.email "firstname.lastname@example.org"
When you've got both personal and work related repositories on your host (like I do), you can use the aliases
work_config (they're defined in
.osx-settings/config/aliases.zsh) to set the corresponding email into your local git config of the current repository. These will only work when you set the environment variables below in
export HOME_AUTHOR_EMAIL="email@example.com" export WORK_AUTHOR_EMAIL="firstname.lastname@example.org"
To get the latest version:
cd ~/.osx-settings git pull origin master
This script adds aliases for your project directories, but you'll have to tell it where your projects can be found.
.osx-settings/config/personal.zsh, which you've already created earlier for your Git settings above. Add something like:
Add as many directories as you like.
In the iTerm2 general settings, check
Load preferences from a user-defined folder or URL. Fill in the text field to point to
/Users/your_name/.osx-settings/iterm2. You might need to restart iTerm2 after that.
If you have trouble reading the colors, enable
Draw bold text in bright colors in the iTerm2 profiles settings (under Text).
This is heavily inspired by others, but mostly by @iain.