Commit Graph

505 Commits (fd29ff14dd72b60a3c5f120b9d18ff4d96d6ba8b)

Author SHA1 Message Date
Nils Winkler fd29ff14dd Added comment for grnot. 2012-06-25 12:21:43 +02:00
Nils Winkler 6ce8a3ee9a Added alias for Growl notification, can be used like the following to notify once the long running process (make in this example) is done:
$ make install ; grnot
2012-06-25 12:21:43 +02:00
Travis Swicegood 84fac4f680 Merge pull request #138 from nwinkler/java-plugin
Java plugin
2012-05-21 15:08:34 -07:00
Nils Winkler 998c09745a Added Java plugin. 2012-05-21 11:50:01 +02:00
Travis Swicegood 311f95b6ce Merge pull request #137 from erichs/fix_136
fix for issue #136
2012-05-20 12:56:16 -07:00
Erich Smith bffae2a1e1 fix for issue #136
issue #136 was found to be caused by an aliased 'ls' command that
generated rogue values for 'plugin' in the enable/disable-plugin()
functions. this commit fixes that by forcing the shell to disregard
aliased 'ls' commands.
2012-05-20 13:18:04 -04:00
Travis Swicegood 3bde23a461 Merge pull request #134 from erichs/plugin_metadata
Plugin management system (big thanks to @erichs)
2012-05-17 14:40:11 -07:00
Travis Swicegood 42a07e9089 Merge remote-tracking branch 'erichs/fasd_fix' 2012-05-17 16:38:15 -05:00
Travis Swicegood 776b17c46c Merge pull request #132 from Draiken/master
Updating git.completion.bash
2012-05-17 14:36:43 -07:00
Travis Swicegood 5ce8971116 Merge pull request #135 from nofeet/master
Fix for install.sh for partial installations
2012-05-17 14:35:27 -07:00
Erich Smith 758c4f3328 test existence, not symlink
it isn't safe to assume that symlinks created in the enabled/* dirs will
be symlinks later...

some users use tools like Dropbox to sync their files across systems,
and these may transform symlinks into regular files.  explicitly
checking for symlinks with tests like [ -h $file ] will break on these
systems.  these tests have been replaced with [ -e $file ] instead.
2012-05-16 13:00:22 -04:00
Erich Smith a825c5f16f plugins-help is much faster
this replaces the naive implementation that called glossary() on each
group, and is an order of magnitude faster.

fix grouping in javascript.plugin.bash
2012-05-15 14:29:06 -04:00
Travis Swicegood e14543a4bc fix typeset_functions
typeset_functions relies on a hack to determine the shell it is running
under. this hack fails on some versions of bash. if the $SHELL variable
is set, prefer that instead.

fix bug in draft()
2012-05-15 14:27:29 -04:00
Greg Nofi 76326490ec Fix load_some() installation to handle file paths instead of names.
The ls command in for loop has a pattern now, so full paths are
returned. The user prompt and symbolic link have been updated to handle
this.

Also, not all plugins have '.plugin.' in the middle of their names and
weren't showing up on user prompt. With this commit, everything after
the first period in the file name is stripped.
2012-05-14 20:05:06 -04:00
Erich Smith 70e1cd36be fix typos 2012-05-14 14:12:09 -04:00
Erich Smith 1920629d1a update help documentation 2012-05-13 22:13:54 -04:00
Erich Smith 08e439c4f0 update plugin management 2012-05-13 22:13:54 -04:00
Erich Smith 8051a8520e disable z() if fasd is enabled
loading fasd clobbers z(), and results in a cryptic syntax error
message, since 'z' is already an alias when z.plugin.bash is being
sourced.

this conditional detects this situation and returns early.
2012-05-13 22:13:54 -04:00
Erich Smith 55e77deac1 standardize plugins, update metadata
add about-plugin metadata
chmod -x plugins
cleanup filenames to standardize on x.plugin.bash format
only plugin files intended to be executable from the command line should
contain a shebang line, and should be a+x.
2012-05-13 22:13:54 -04:00
Erich Smith 254d4459e2 basic plugin management
move plugin management functions into 'lib' group in helpers.bash
2012-05-13 22:13:54 -04:00
Erich Smith a385e0f32e update to latest version of composure.sh
this fixes a bug in draft() and improves performance in metafor()
and glossary()
2012-05-13 22:13:03 -04:00
Erich Smith 65ea1e9f10 fix bug in fasd init
since we're sourcing this as a plugin, which loads the function, it's
counterproductive to also define the 'fasd' alias

moving the about-plugin metadata into the case block makes this script
safe for execution even if composure metadata isn't exported and
available

rename fasd.bash to fasd.plugin.bash to bring it inline with the other
plugin scripts
2012-05-13 20:56:34 -04:00
Erich Smith 205027491a Merge branch 'master' into plugin_metadata 2012-05-11 14:08:33 -04:00
Luiz Felipe 868fcd0c41 updating git.completion.bash 2012-05-10 14:52:04 -03:00
Travis Swicegood 54680bd83a Merge pull request #131 from nwinkler/fasd-bash-it-path
fasd is using fixed path instead of BASH_IT variable
2012-05-10 08:56:33 -07:00
Nils Winkler f3d4469568 Fixed reload by expanding environment variable before defining the alias. 2012-05-10 16:24:18 +02:00
Nils Winkler ff99e1f8d4 Fixed BASH_IT path in fasd configuration to use environment variable instead of fixed path. 2012-05-10 15:57:47 +02:00
Erich Smith 3f8fe6157c update plugin documentation 2012-05-09 09:27:10 -04:00
Erich Smith 635c380a91 update composure 2012-05-08 23:48:01 -04:00
Erich Smith 248eb30e00 plugin-specific metadata
cite about-plugin metadata.  This could be retrieved later, say by an
install script or other helper function, with:

cat ~/.bash_it/plugins/enabled/base.plugin.bash | metafor about-plugin

In this way, summaries of each plugin may be provided to give newcomers
(like me!) an overview.

also, rewrote plugins-help(), which didn't work very well on my system.
It now dynamically queries composure metadata.
2012-05-08 23:40:24 -04:00
Travis Swicegood 89263728f2 Merge remote-tracking branch 'erichs/fasd' 2012-05-07 18:21:33 -05:00
Travis Swicegood 8bac035322 Merge remote-tracking branch 'erichs/fix_pull_121' 2012-05-07 18:19:07 -05:00
Travis Swicegood fd611ecfb0 Merge remote-tracking branch 'six8/rbenv' 2012-05-07 18:13:31 -05:00
Mike Thornton bae8a1cd6f Make it so rbenv doesn't try to run if it's not installed 2012-05-07 15:48:38 -05:00
Erich Smith b9e985b893 update alias directory 2012-05-07 12:57:23 -04:00
Erich Smith 3e76d67134 fasd 0.5.4 plugin
The [fasd](https://github.com/clvv/fasd) project replaces the current
z() functionality, and generalizes it for all files and directories.

It provides a 'z' alias which works like z() does today, but faster, as
well as 'f' for selecting files, and 'd' for selecting directories, all
based on 'frecency' with Bayesian inference calculations. It is also
trivial to set up a 'v' alias to edit frecently used files.

Seriously, two points just for using Bayes' theorem.

I've sourced this as a plugin, and made a minor modification to @clvv's
0.5.4 file to bootstrap the initialization process without installing
fasd outside of Bash_it, or modifying the PATH.

This doesn't fully install fasd on a system (for instance, the man page
is not installed).

Using this as a plugin will clobber the z plugin.

This also installs a PROMPT_COMMAND hook. I don't have a complex setup,
but it is possible this may not play nice with other PROMPT_COMMAND
hooks if they are set. It seems to work well on my box.

As an aside, it appears that z.bash is out-of-date compared with @rupa's
latest code.
2012-05-07 12:56:08 -04:00
Erich Smith 5d32cf9a02 quote examples
prevent bash expansion and parsing of example code
2012-05-07 12:51:10 -04:00
Travis Swicegood fe815f170d Merge remote-tracking branch 'xiaogaozi/master' 2012-05-04 16:33:10 -05:00
Travis Swicegood 3e7c0fbda0 Update to @erichs' latest version of Composure
Was having issues with iTerm and composure's old binding of edit-and-execute.
This version removes that, so just updated rather than edit.
2012-05-04 16:30:22 -05:00
xiaogaozi cd7eaaa066 Change the test expression of Git 2012-05-04 22:51:48 +08:00
Travis Swicegood 773370bacd Merge remote-tracking branch 'CaptainPatate/master' 2012-05-02 11:14:47 -05:00
Travis Swicegood b7e429b1f8 optimize this a bit 2012-05-01 17:25:47 -05:00
Travis Swicegood e51c7fb97c Remove commented out stuff 2012-05-01 17:23:23 -05:00
Travis Swicegood 4c3f21ae0b add a little docblock explaining about it 2012-04-30 11:09:46 -05:00
Travis Swicegood 576fcb6c6f Ignore files that begin with an underscore (bandaid for #108) 2012-04-30 11:07:15 -05:00
Amaury Gauthier 30489e7775 Remove the color escape which mess up long command line in candy theme 2012-04-29 15:13:30 +02:00
Travis Swicegood 404f50956d Merge remote-tracking branch 'erichs/master' 2012-04-28 12:08:58 -05:00
Erich Smith 2086a053df fix typo 2012-04-28 10:40:16 -04:00
Erich Smith e3011c5ead more portable pass function 2012-04-28 10:35:01 -04:00
Erich Smith a3c3caa0ab help metadata for base plugin 2012-04-28 00:43:38 -04:00