Screencast: Arbeit an der Konsole mit ZSH

Als Rails-Entwickler arbeitet man häufig in einer Shell, einem Terminal bzw. Konsole. Ryan zeigt wie ein Wechsel zur Z-Shell, zusammen mit seinem entsprechend Theme, wechselt.

 

Downloads in verschiedenen Formaten:

mp4
m4v
webm
ogg

 

Resourcen:

bash

ps
wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
mate ~/.zshrc
cat ~/.bash_profile >> ~/.zshrc
mate ~/.oh-my-zsh

.zshrc

# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh

# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="rbates"

# Uncomment following line if you want to disable colors in ls
DISABLE_LS_COLORS="true"

# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git bundler brew gem rbates)

source $ZSH/oh-my-zsh.sh

# Customize to your needs...

export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"

.oh-my-zsh/themes/rbates.zsh-theme

PROMPT='%3~$(git_prompt_info)%# '

ZSH_THEME_GIT_PROMPT_PREFIX="["
ZSH_THEME_GIT_PROMPT_SUFFIX="]"

.oh-my-zsh/custom/plugins/rbates/rbates.plugin.zsh

c() { cd ~/code/$1; }
_c() { _files -W ~/code -/; }
compdef _c c

Eingestellt am 19.12.2011 um 14:05

Kategorie: Tutorials

Be Sociable, Share!

Kommentare für diesen Artikel wurden geschlossen.

Suchen auf rubyonrails.de

Aktuelle Rails Version + Abhängigkeiten:

Gem rails-3.0.0
actionmailer (= 3.0.0, runtime)
actionpack (= 3.0.0, runtime)
activerecord (= 3.0.0, runtime)
activeresource (= 3.0.0, runtime)
activesupport (= 3.0.0, runtime)
bundler (~> 1.0.0, runtime)
railties (= 3.0.0, runtime)

Rails auf Rubyforge
Rails auf Github