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 https://raw.github.com/gist/323731)"
Install git and wget:
brew install git
brew install wget
Install oh-my-zsh:
wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -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:
ZSH_THEME="YOUR_FAV_THEME"
Install and enable zsh-highlighting:
git clone http://github.com/nicoulaj/zsh-syntax-highlighting.git ~/.oh-my-zsh/plugins/
edit .zshrc and add in line 27 (space seperated):
zsh-syntax-highlighting
Solarized and Pathogen
(http://ethanschoonover.com/solarized)
(https://github.com/tpope/vim-pathogen)
mkdir -p ~/.vim/autoload ~/.vim/bundle; \
curl -so ~/.vim/autoload/pathogen.vim \
https://raw.github.com/tpope/vim-pathogen/HEAD/autoload/pathogen.vim
cd ~/.vim/bundle
git clone https://github.com/altercation/vim-colors-solarized.git
Extended .vimrc:
cd ~/ && git clone https://github.com/ikaros/vim-configuration.git && 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 https://github.com/msanders/snipmate.vim.git bundle/snipmate
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!
Comments
Post a Comment