I like ZSH and I use the configuration framework Oh My ZSH to add more functionality. Additionally, I have added a lot more customization in recent years.
If ZSH
and oh-my-zsh
are new to you, check out Ryan Bates' Oh My ZSH screencast for a short introduction and setup instructions.
This is the /custom
folder in my ~/.oh-my-zsh
. It contains my personal setup which works fine for me. It includes some personal configurations, so it is not made to be a template, but it may provide some re-usable ideas. I'm working on making this more generic by adding personal settings and configuration files.
This assumes that you have a working Oh My ZSH. In your ~/.oh-my-zsh
directory, replace custom
with the git clone of this repository.
~/.oh-my-zsh
rm -r custo
git clone git://github.com/indrode/zsh-custom.git custom
Next, replace your ~/.zshrc
with a symlink to ~/.oh-my-zsh/custom/zshrc
. You may want to make a backup of your ~/.zshrc
if you desire.
rm ~/.zshrc && ln -s ~/.oh-my-zsh/custom/zshrc ~/.zshrc
Restart the shell and run setup-zsh
to create the configuration file.
exec $SHELL
setup-zsh
Adjust the settings in settings/config
to your liking.
# name of the zsh theme to be used
export ZSH_THEME="indro"
# your preferred text editor, e.g. mate, subl, vim, nano
export EDITOR=subl
# name of ruby manager, e.g. chruby, rbenv
export RUBY_MANAGER='chruby'
# hard drive used prompt
export MAIN_HD='/dev/disk1'
Refer to https://github.com/indrode/zsh-custom/tree/master/settings for more detailed explanations regarding settings.
This setup uses my custom prompt. You can view it here. Adjust the setting to use a different prompt.
- Fork it ( https://github.com/indrode/zsh-custom/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request