Commit Graph

9 Commits (0368595a3f911586054fcde9ba4d63cf8f712ef4)

Author SHA1 Message Date
Josh McGee 0368595a3f severe rewrite of install.sh
comments are sprinkled around the new script with bits of info.
the whole thing has been restructured to allow more concise code,
and the style has been more or less formalized.

this is mostly a test to see how well this can integrate and
extend alongside the existing bash-it codebase before further
changes are committed to.
2013-03-29 09:31:24 -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
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
Travis Swicegood 576fcb6c6f Ignore files that begin with an underscore (bandaid for #108) 2012-04-30 11:07:15 -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
Victor Castell 55c32cc3e9 Break needed in load_some Y case 2011-07-25 13:34:39 +02:00
Mark Szymanski 159e1e42fa More granular enabling of plugins/completion/aliases 2011-07-24 15:01:07 -05:00
Mark Szymanski 3eff6b2d38 Add ability to choose what plugins/aliases/completion to install at install time 2011-07-24 13:36:07 -05:00
Mark Szymanski d82d8fbbe8 Add install script 2011-06-28 00:22:43 -05:00