commit | b2b629eb1ff8be47ae3f063532f3120427f23790 | [log] [tgz] |
---|---|---|
author | John Schulz <jfsiii@jfsiii.(none)> | 周日 10月 09 14:24:10 2011 -0400 |
committer | John Schulz <jfsiii@jfsiii.(none)> | 周日 10月 09 14:24:10 2011 -0400 |
tree | 1b0a9b75516be0fe2ce07da7a835dc4f5a1436b7 | |
parent | 323ce20a2d1e67b1d3025604f5e33c60b52ae7f9 [diff] |
New prompt functions and variables * `(git|svn|hg)_promp_vars` only assign values to the variables but do not `echo` * `(git|svn|hg)_promp_info` still `echo`s, but now calls `*_prompt_info` first * Introduce `SCM_CHANGE` to store the changeset id * Introduce `SCM_BRANCH` to store the branch name
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 http://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 (will show all the help commands) aliases-help rails-help git-help plugins-help
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!