Friday, December 2, 2011

OSX improved shell environment

There is my favorite environment for all reasons on my MacBook and come with an improved zsh and extended .vimrc with highlighting, checking, TextMate, Solarize. Some tools are to install, so here a recipe for it.
Features are direction keys navigation through directories or files, dev friendly colors, command highlighting, improved history, option autocomplete, ssh autocomplete (if the keys are known) and a lot more useful things.

Get Xcode:
 AppStore => Xcode => Install Xcode

From now we use a terminal window.

Install Brew
 /usr/bin/ruby -e "$(curl -fsSL"

Install git and wget:
 brew install git
 brew install wget

Install oh-my-zsh:
 wget --no-check-certificate -O - | sh

The script want to change your shell from /bin/bash into /bin/zsh, here you have to provide your password.

To change the theme edit ~/.zshrc and edit line 8:

Install and enable zsh-highlighting:
 git clone ~/.oh-my-zsh/plugins/
 edit .zshrc and add in line 27 (space seperated):

Solarized and Pathogen

mkdir -p ~/.vim/autoload ~/.vim/bundle; \  
curl -so ~/.vim/autoload/pathogen.vim \
cd ~/.vim/bundle
 git clone

Extended .vimrc:
cd ~/ && git clone && rm -rf .vim && mv vim-configuration .vim && rake -T && rake place_vim_config

I remove some bundles for now:
 git rm --cache bundle/cucumber
 git rm --cache bundle/rubytest
 git rm --cache bundle/snipmate

and add snipmate, because the bundle above does not work:
 git submodule add bundle/snipmate

update all bundles:
 git submodule update --init

To change the Solarized theme edit in your .vimrc the background-variable (set background=light | dark)

Finished. Enjoy your new shell!

No comments:

Post a Comment