commit | 980bd9ea78227fb1b756220f6cfbada0539dccb8 | [log] [tgz] |
---|---|---|
author | Chris Causer <c.causer1@physics.ox.ac.uk> | 周二 7月 31 11:09:10 2012 +0100 |
committer | Chris Causer <c.causer1@physics.ox.ac.uk> | 周二 7月 31 11:09:10 2012 +0100 |
tree | aa5c01da22865fdabc79897342197cc35f94f446 | |
parent | e1da40a47510c37f688572bfbaf01fe26ae36189 [diff] |
Remove buggy line in install.sh causing "all" option to break When selecting all, I get the following in my plugins/enabled directory $ cd ~/.bash_it/plugins/enabled && ls -l <snip fileinfo> * -> ~/.bash_it/plugins/[^_]available/* In other words, the regexp is not being expanded, and I don't think bash has ever had this capability (I am running 4.2.24) . Looking at the commit 24431627ab24c1c97bf3fb5796037e198f465e25, this line was added so as to disable some plugins starting with a "_". In this circumstance, this line is wrong anyway as it skips the directory "_available", rather than available/_whatever. This commit aims to fix this to the installer's intended purpose. It also does a sanity check that no file exists already in enabled and skips otherwise. ln -s does the right thing however more human error message might be more desirable.
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 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!