Commit Graph

17 Commits (cfef7e2f73c68f89396826d3dc40dc170bea8083)

Author SHA1 Message Date
Benjamin Brombach 4510c9ee63 fixes #343 by surrounding $HOME (which can have spaces) with quotations marks 2015-04-29 14:56:46 +02:00
Nils Winkler a2bddd5c75 Updated install script
All of the install questions are now using the same syntax and semantics
for read/echo/case.
2015-04-26 12:00:17 +02:00
shaief 5a5f3d99d2 Add confirmation before deleting .bak file. Add message when installation script ends. 2015-04-22 11:17:08 +03:00
Ivan Povalyukhin c81971d1d8 preserve attributes of $CONFIG_FILE on backup 2015-04-11 15:51:26 -07:00
Nils Winkler f3ca9f53d3 Added option for skipping questions in installer.
The install script now allows to specify one of the following options:
* --all
* --none

Both result in any questions being skipped. This is convenient when running the install script from a script, or a provisioning tool like Ansible.
2015-03-11 13:08:14 +01:00
Ivan Tham 63cc12271e Minor edits to install.sh for easy install 2015-01-26 21:20:25 +08:00
Eduardo Bellido Bellido d462a35c9a Fixes issue #173 2015-01-09 22:50:09 +01:00
John A. Barbuto 10bda0c111 Use relative symlinks during installation
When using dotfiles synced between different machines, this allows
enabled aliases, completions, and plugins to work with varying
home directories.
2014-04-05 15:28:58 -07:00
Sasha Gerrand 9dec492023 Adds write permission test on ~/.bash_profile prior to backup attempt. Fixes #199. 2013-04-24 13:05:28 +10: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