Commit Graph

43 Commits (3d6d42ec2f14a1cd17f39ec499c741f1ef28d675)

Author SHA1 Message Date
polytomous 82ee86222e
INSANE EDIT: Pick a less crazy word than "sane" 2018-03-16 18:51:48 -07:00
Nils Winkler 54774d4f59 Using the existing enable function for interactive install 2017-06-24 17:31:30 +02:00
Nils Winkler 3ecf684eb6 Switched loading of single components to existing functions 2017-06-24 17:31:30 +02:00
林博仁 63c4ace648 Make installer more path-with-spaces-proof, fixes #952
NOTE: This doesn't make Bash-it usable as there's so many similar errors scattered in other locations, this commit simply makes installer works

Signed-off-by: 林博仁 <Buo.Ren.Lin@gmail.com>
2017-05-02 11:06:19 +08:00
Shingo Kitagawa 00d17ff16a add --no-modify-config flag to install.sh 2016-11-04 17:42:40 +09:00
ravenhall 49afeb707e Added forgotten -e and moved funcs to the top to prevent scoping issue 2016-05-31 18:45:36 -05:00
ravenhall c6c21abb0e Colorized error, relocated installing message, created backup_new func, reformatted do 2016-05-31 14:14:12 -05:00
ravenhall 11311b17f6 Implemented solution to issue #676 2016-05-19 22:08:46 -05:00
Nils Winkler 696d0e50b0 Fixed indentation
Removed tabs, using 2 spaces everywhere.
2016-01-08 08:26:55 +01:00
Nils Winkler 28071aba21 Merge pull request #641 from spectrumIG/Issue-621
Add follow sym link and option to append template to existing .bashrc
2016-01-08 08:20:06 +01:00
Daniele Andreoli 245fcfa49b Fix wrong pipe. Add in any case a backup file for compatibility 2016-01-08 02:20:18 +01:00
Daniele Andreoli fdc75e42b9 Add while block to allow correct choice 2016-01-07 09:23:36 +01:00
Daniele Andreoli 55245cc98e Fix typo and missing spaces 2016-01-07 09:20:23 +01:00
Daniele Andreoli a3efe1479a Add follow sym link and option to append template to existing .bashrc 2016-01-06 12:53:05 +01:00
Nils Winkler 38bd3a3b99 Loading Homebrew Bash Completion if installed
In addition to the regular /etc/bash_completion, the one from Homebrew
is loaded when running on OS X, and when Homebrew is installed.

Also added the system completion to the default install options, since
this is a feature that's requested frequently.
2016-01-05 07:35:02 +01:00
Nils Winkler 127ac23eea Added base plugin to default install
Fixes #609
2015-12-22 09:42:22 +01:00
Nils Winkler c0a214294d Merge pull request #598 from justin8/change-install-location
Fix for OS X installation
2015-10-22 16:26:40 +02:00
Justin Dray dd8831faf1 Fix for OS X installation 2015-10-22 16:20:44 +02:00
Nils Winkler d8e16c36a2 Merge pull request #589 from justin8/change-install-location
Allow for any install location
2015-10-21 09:14:51 +02:00
Justin Dray dad983adb5 Remove exit from install. Update readme for install locations 2015-10-16 16:27:58 +02:00
Nils Winkler 36caf70f8d Renamed alias-completion file to match naming conventions 2015-10-15 11:28:58 +02:00
Nils Winkler c43f3d8327 Enabling general aliases by default 2015-10-15 11:28:49 +02:00
Justin Dray 7923b865ea Allow for any install location 2015-10-14 13:08:04 +00:00
Nils Winkler 7384b284ec Added alias completion to the default install options 2015-09-07 09:56:16 +02:00
Nils Winkler 63add1f86a Added load_some function again
It can be called by providing the `--interactive` switch to the install
script.
2015-08-06 16:52:37 +02:00
Nils Winkler 237816b782 Updated install script
Removed Jekyll template option - it does not really belong in Bash-it.

Removed the all/some/none options. Most people selected `all` and then
complained about things not working, or error messages being shown. This
was mostly due to missing dependencies.

The installer now uses a 'sane' default - it just enables completion for
the 'bash-it' command and nothing else. At the end of the installation,
it prints a message explaining the ways to see the available plugins and
how to enable them.

Updated readme with install options
2015-08-06 09:51:39 +02:00
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