Commit Graph

40 Commits

Author SHA1 Message Date
Charles Celerier
75d31a07bb bash_it.sh: Patched changes made to support custom.*.bash files.
Code was added to support loading
custom.{aliases,completion,plugins}.bash from their respective
directories in 46f6701a3. The change made in that commit does not wait
until the enabled {aliases,completion,plugins}/*.bash files are loaded
before sourcing the custom.*.bash files, which was the case before. This
patch fixes any issues caused by that change by loading the enabled
*.bash files and custom *.bash files in two successive for loops.
2014-04-28 13:03:47 -04:00
Charles Celerier
46f6701a3f bash_it.sh: Added support for custom.plugins.bash and custom.completion.bash. 2014-04-23 20:13:29 -04:00
Nils Winkler
be20972cf0 Merged @erichs changes for the bash-it function. 2012-05-23 09:45:36 +02:00
Erich Smith
1920629d1a update help documentation 2012-05-13 22:13:54 -04:00
Erich Smith
a8fcf9f18c import composure functions 2012-04-28 00:02:31 -04:00
Eitan Adler
3fc60b5358 Fix bogus bash binary location 2012-04-17 00:24:58 -04:00
Travis Swicegood
b524bb6047 Extract loading of enable-able files and add reload_* functions 2012-03-26 11:19:38 -05:00
Travis Swicegood
b59ee658f7 Make sure that the new BASH_IT/BASH_IT_THEME maintains BC 2011-10-29 18:56:36 -05:00
Travis Swicegood
b6d444d0ce Move this back to its original location
Not sure why this needs to be moved.  Feels like it could cause some
issues since the values defined in themes aren't available to any of the
lib or plugins.
2011-10-29 18:55:20 -05:00
Travis Swicegood
ad7c1eb304 Merge remote-tracking branch 'jfsiii/master'
Conflicts:
	bash_it.sh
2011-10-29 18:37:31 -05:00
John Schulz
e3194237e9 $BASH_IT should be conditionally defined before use.
7483c6dac3 moved one line too many.
2011-10-28 19:22:20 -04:00
John Schulz
7483c6dac3 Custom themes should be loaded *after* the base theme. 2011-10-27 19:29:34 -04:00
Jon Schewe
7d18cccae9 Remove error message when enabled directory is empty
This is fixed by checking if the file exists before trying to source it.
2011-10-09 20:44:29 -05:00
John Schulz
323ce20a2d Replace $BASH with $BASH_IT because $BASH is already used on *nix systems for the pathname to the executable (http://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html#Bash-Variables) 2011-09-20 11:07:48 -04:00
Noorul Islam K M
8e0b66899d Do not break out of the loop instead continue with other items in the list. 2011-08-22 09:26:26 -05:00
Mark Szymanski
80ec9c06ba Remove automatic creation of enabled plugins/aliases/completion 2011-07-24 13:35:43 -05:00
Mark Szymanski
9ad7964c86 Add support for multiple Jekyll sites 2011-06-24 17:49:19 -05:00
Travis Swicegood
d7cfa8b394 Switch to single loop now that all directory use the same pattern
Simple refactoring -- now there's no need to source each one
independently.
2011-06-21 09:31:26 -05:00
Travis Swicegood
e115b4c5af Move auto-complete code over to available -> enabled style
This continues the move toward the ability to turn things off with
everything turned on by default.
2011-06-21 09:20:40 -05:00
Mark Szymanski
78270b3ab5 Make sure custom aliases file exists before sourcing it 2011-06-17 11:22:39 -05:00
Mark Szymanski
50179fd778 Can't forget to source the custom aliases! 2011-06-13 22:05:45 -05:00
Travis Swicegood
ef42010c7b Make all aliases optional (a la plugins)
This continues a pattern that was introduced in ffa45b0 and refined
further in later commits.  This enables all aliases by default, but can
be disabled by any user if they remove the appropriate
aliases/enabled/*.bash file.
2011-06-12 19:47:17 -05:00
Mark Szymanski
b7a0cb6133 Added Homebrew aliases 2011-06-05 20:45:53 -05:00
Mark Szymanski
4814843948 Fix issue with plugin initalization 2011-05-27 20:57:57 -05:00
Mark Szymanski
1b268e7c28 Initialize enabled directory if it doesn't exist
This is to make bash_it work in a new install after
the plugins/enabled directory was ignored
2011-05-27 11:53:54 -05:00
Travis Swicegood
ffa45b0391 Create the concept of enabled plugins
This allows users to disable a plugin without completely removing it.
Instead, they simply remove the `plugins/enabled/*.bash` file for the
plugin they want to disable.  This continues the concept of "everything
on" while providing greater flexibility to future users.

It might be a good idea to allow turning these off by default in the
future and allowing not only the `plugins/enabled/*.bash` files but also
an array of `<plugin_name>` values that would search for
`plugins/available/<plugin_name>.plugin.bash` to enable them.  That
method would make it easier for people custom tune their plugins from
within their `.bash_profile` script.
2011-05-02 23:12:50 -05:00
John Schulz
6e7f423983 Allow theming to be disabled (eg for old terminals)
* Only load a theme file if `bobby` has been set
 * Only alter `PS1` if `\[\]\[$(scm_char)\]\[\]\[$(scm_prompt_info)\]\[\]\[$(rvm_version_prompt)\] \[\]\h \[\]in \[\]\w \[\]\[\n\[\]→\[\] ` has a value
2010-11-11 11:57:47 -05:00
Robert R Evans
6c97585329 merge conflict 2010-11-10 15:49:21 -08:00
John Schulz
d5645e74a0 Theme changes
* Load colors before base theme so they can be used by base theme
 * Change git-specific variables to SCM-agnostic ones
2010-11-09 23:21:19 -05:00
Florian Baumann
bd22485639 added documentation for plugins-help 2010-11-08 21:52:49 +01:00
Mark Szymanski
e6fb7030bf Added todo-help entry in bash-it.sh's bash-it function 2010-10-31 15:32:22 -05:00
Robert R Evans
79e50296d7 updated comment 2010-10-12 14:14:20 -07:00
Robert R Evans
2010f011f8 Made a lot of changes: no more functions directory. All aliases have been moved to the new alias directory. Plugins are now for functions only. Updated the README to reflect the changes and add a contributor's list. 2010-10-10 09:24:19 -07:00
Robert R Evans
c9da086643 Removed custom.bash and am now completely ignoring all files within the custom directory. Started de-macify to provide more support for linux (thanks to alsemyonov on github). 2010-10-06 17:27:55 -07:00
Robert R Evans
70c3b523b3 Added a couple more themes and put colors into its own file 2010-10-03 11:50:22 -07:00
Robert R Evans
5e0e86f705 Added a generic aliases help 2010-10-02 15:29:23 -07:00
Robert R Evans
070107ab95 Added a function to get your public IP address 2010-10-02 15:23:57 -07:00
Robert R Evans
a7d1ee0c02 Added help screens. 2010-10-02 15:04:24 -07:00
Robert R Evans
76ed68d18c Cleaned bash it up 2010-10-02 12:29:17 -07:00
Robert R Evans
9c7cd9aa00 First Commit 2010-10-02 11:55:34 -07:00