commit | b48a0f2f65c2fa9cf12e8786aa19308a9109dc8e | [log] [tgz] |
---|---|---|
author | aram price <me+git@aramprice.com> | 周日 11月 03 17:58:09 2013 -0800 |
committer | aram price <me+git@aramprice.com> | 周日 11月 03 18:08:03 2013 -0800 |
tree | a5e3d02a27eb4539b303cce9159fcd98d2200a28 | |
parent | 8c03cc4297aa77ed6d7d5b5f715ee856fb951b71 [diff] |
Add chruby and chruby-auto plugins * chruby.bash loads chruby * chruby-auto.bash loads chruby and enables auto-switching * add chruby_version_prompt() function for displaying ruby version * inspired by https://gist.github.com/rssvihla/6153455
Bash it is a mash up of my own bash commands and scripts, other bash stuff I have found.
(And a shameless ripoff of oh-my-zsh. :)
Includes autocompletion, themes, aliases, custom functions, a few stolen pieces from Steve Losh, and more.
git clone https://github.com/revans/bash-it.git ~/.bash_it
~/.bash_it/install.sh
(it automatically backs up your ~/.bash_profile
)~/.bash_profile
file in order to customize bash-it.NOTE: The install script will also prompt you asking if you use Jekyll. This is to set up the .jekyllconfig
file, which stores info necessary to use the Jekyll plugin.
bash-it show aliases # shows installed and available aliases bash-it show completions # shows installed and available completions bash-it show plugins # shows installed and available plugins bash-it help aliases # shows help for installed aliases bash-it help completions # shows help for installed completions bash-it help plugins # shows help for installed plugins
For custom scripts, and aliases, just create the following files (they'll be ignored by the git repo):
aliases/custom.aliases.bash
lib/custom.bash
plugins/custom.plugins.bash
Anything in the custom directory will be ignored, with the exception of custom/example.bash
.
There are a few bash it themes. If you've created your own custom prompts, I'd love it if you shared with everyone else! Just submit a Pull Request to me (revans).
I think everyone has their own custom scripts accumulated over time. And so, following in the footsteps of oh-my-zsh, bash it is a framework for easily customizing your bash shell. Everyone's got a custom toolbox, so let's start making them even better, as a community!
Send me a pull request and I'll merge it as long as it looks good. If you change an existing command, please give an explanation why. That will help a lot when I merge your changes in.
Thanks, and happing bashing!