Commit Graph

1128 Commits (7923b865ea997ef16a0560bc39c49dbe74c20223)

Author SHA1 Message Date
Erich Smith 40bfea2cf3 Merge pull request #114 from emilb/master
Added Maven completion file
2012-07-31 17:32:49 -07:00
Erich Smith 19cca368a5 Merge pull request #144 from nwinkler/bash-it-osx-growl
Growl notification for OS X commands
2012-07-31 17:30:34 -07:00
Erich Smith 4de0b929eb Merge pull request #151 from ChrisCauser/master
The installer is currently broken on my setup when selecting all. This patch should fix it.
2012-07-31 17:27:44 -07:00
Chris Causer 980bd9ea78 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.
2012-07-31 11:09:10 +01:00
Erich Smith e1da40a475 Merge pull request #129 from erichs/todo.sh
add todo.txt-cli as a plugin
2012-07-10 10:15:31 -07:00
Erich Smith 98fbc2933b Merge pull request #139 from nwinkler/enable-disable-aliases-completions
Enable/Disable for aliases and completions
2012-07-10 10:12:31 -07:00
Travis Swicegood 4df96400ab Merge remote-tracking branch 'von/master' 2012-07-03 13:15:11 -05:00
Von Welch e2e63c9662 Don't require tmux server to be running for completion to work. 2012-06-30 16:47:13 -04:00
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
nwinkler ce936e0513 Merge pull request #3 from erichs/enable-disable-aliases-completions
readme update
2012-05-24 00:27:49 -07:00
Erich Smith ee79a0e465 update README 2012-05-23 21:43:18 -04:00
Nils Winkler be20972cf0 Merged @erichs changes for the bash-it function. 2012-05-23 09:45:36 +02:00
Nils Winkler e82991beb8 Updated help 2012-05-23 09:31:56 +02:00
Erich Smith 961c914e0f alias-help() 2012-05-22 10:08:38 +02:00
Erich Smith 17aaa9ce24 add alias metadata, remove help() 2012-05-22 09:57:25 +02:00
Nils Winkler 95ce548451 Cleaned up parameters and added meta data for plumbing functions. 2012-05-22 09:33:59 +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 f71be20247 Changed meta info resolution to look for data based on the type, e.g. about-plugin, about-alias, about-completion. 2012-05-21 15:52:03 +02:00
Nils Winkler 1f558e2550 Extended enable/disable and describe functionality to work for aliases and completions as well. 2012-05-21 13:24:49 +02: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
Erich Smith 339cfe9733 conditionally define t()
if user has enabled the todo plugin, skip defining the 'one thing'
todo function t().
2012-05-17 21:43:57 -04:00
Erich Smith dd9fb1009b conditionally define t()
if user has installed the todo plugin, forego defining the 'one thing'
todo function t().
2012-05-17 21:40:08 -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
Erich Smith 57283d72de respect profile overrides
overrides may now be specified for any of these defaults:
TODO_DIR=$BASH_IT/custom    # change if you want todo.txt and friends
                            # to live somewhere else

TODOTXT_DEFAULT_ACTION=ls   # change if you want a different action,
                            # like 'lsp' or 'lsprj'

TODO_SRC_DIR=
$BASH_IT/plugins/available/todo  # for custom installs with plugins
2012-05-10 20:39:18 -04:00
Erich Smith 00cab2fd6a Merge branch 'master' into todo.sh 2012-05-10 20:33:17 -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 f5badb3c28 add todo.txt-cli as a plugin
Since it is referenced in the default .bash_profile and in aliases and
themes, why not make it an official plugin?

This creates a 'todo/' directory in /plugins/available, and installs
todo.sh and friends there.  Tab completion and the 't' alias should work
out of the box.

Note: it was also necessary to modify .gitignore to ignore the files
todo.sh generates in custom/.
2012-05-09 19:37:37 -04:00
Erich Smith 3f8fe6157c update plugin documentation 2012-05-09 09:27:10 -04:00