Commit Graph

80 Commits

Author SHA1 Message Date
Johnny Robeson
e537ca5ce8 make REPO_BRANCH settable in the environment 2015-03-06 23:50:15 -05:00
Johnny Robeson
8338285615 rename git_branch to REPO_BRANCH 2015-03-06 23:50:15 -05:00
Johnny Robeson
f8a3d64f8a get APP_PATH from the environment if exists 2015-03-06 23:50:15 -05:00
Johnny Robeson
d8d2b3fe0a rename app_dir to APP_PATH 2015-03-06 23:50:14 -05:00
Johnny Robeson
9ea683a0d0 fix 3 more indents 2015-03-06 23:50:14 -05:00
Johnny Robeson
de1c8590a5 finish passing arguments to create_symlinks() 2015-03-06 23:50:14 -05:00
Johnny Robeson
9ca0c2326e move lnif() out of SETUP FUNCTIONS section 2015-03-06 23:50:09 -05:00
Johnny Robeson
20a64761b6 move fork maintance files setup into their own function 2015-03-06 23:47:11 -05:00
Johnny Robeson
24cc3ee0cb use lnif throughout 2015-03-06 23:47:11 -05:00
Johnny Robeson
bc3498b9e8 print message from create_symlink 2015-03-06 23:47:11 -05:00
Johnny Robeson
09e9cf3057 print messages from do_backup 2015-03-06 23:47:11 -05:00
Johnny Robeson
9e954dbe8e embed the error message directly in program_exists 2015-03-06 23:47:06 -05:00
Johnny Robeson
979cbb8137 pass bundle default file to setup_vundle 2015-03-06 23:45:45 -05:00
Johnny Robeson
3adbd7619a refactor sync_repo and friends
upgrade_repo, sync_repo (previously clone_repo), and
clone_vundle have been merged together into a much simpler function.

sync_repo now relies only upon passed arguments, nothing explicit
from the global scope.
2015-03-06 23:45:45 -05:00
Johnny Robeson
e13ba0f945 rename clone_repo to sync_repo 2015-03-06 23:45:45 -05:00
Johnny Robeson
0024ba4063 remove trailing whitespace 2015-03-06 23:45:45 -05:00
Johnny Robeson
34eb41ecee abort earlier if we do not have git
also change the message to match the vim one
2015-03-06 23:45:45 -05:00
Johnny Robeson
1e45e1675e replace \e with POSIX compliant \33
This makes the colors work with the dash shell (shipped with ubuntu)
and perhaps others
2015-03-06 23:45:45 -05:00
Steve Francia
70c38b1484 Merge pull request #664 from jinnovate/HOME-set
Ensure HOME environmental variable set
2014-08-26 16:07:26 -04:00
spf13
4229220da6 Adopting the Apache 2 License. Fixed #653 2014-08-26 16:02:03 -04:00
Jonathan A. Epstein
203d640141 Ensure HOME environmental variable set
When working with puppet (and other setups), it is possible the HOME environmental variable is unset. This
leads to a spf13 bootstrap which does not perform as expected because `$HOME` is empty. This results in files being written to undesirable locations such as `/.spf13-vim-3/.vimrc.bundles` Let's stop the user before they get into this bad state.
2014-08-20 23:41:16 -04:00
Steve Francia
9028b86c7f Merge pull request #605 from krblt/default-bundles
Introduce .vimrc.bundles.default
2014-06-04 11:06:14 -04:00
Copperfield
85cbd48c75 Update bootstrap.sh 2014-05-04 12:48:34 +02:00
Gokhan KARABULUT
1f5d4da95a Fix setup_vundle to install default bundles. 2014-05-03 22:51:54 +03:00
krblt
cb6e5634bb Introduce .vimrc.bundles.default 2014-05-03 20:24:34 +03:00
Cade-Forester
52f6b415ba Update bootstrap.sh 2014-03-21 08:14:12 -07:00
Johnny Robeson
507b6b01ac add $app_dir var to point to application root
This is about the same as the %BASE_DIR% var in the windows
scripts
2014-02-10 03:55:33 -05:00
Steve Francia
2030f7e6c7 Merge pull request #543 from matlads/3.0
allow git_uri and vundle_uri to be set in ENV for bootstrap.sh
2014-02-03 11:44:15 -08:00
Johnny Robeson
f68eb5a10e fix spelling of occurred in debug() 2014-02-02 16:17:17 -05:00
Martin Atukunda
81144413eb bash requires the space in this case 2014-01-31 10:41:47 +03:00
Martin Atukunda
0bdeca5082 store the vundle uri in a variable.
I sometimes need to use other git transports (as opposed to https) and having these uris readable from the environment helps.
2014-01-31 10:37:49 +03:00
lengyuefeng
4778fb2ded fix bug of .vim directory
In the repo, there's no .vim directory, so I think the shell should
create it first.
2013-09-14 16:28:19 +08:00
Stephen Bennett
b2389817c3 Populate .vimrc.before with all spf13 options
* .vimrc.before should not be modified (just like any other non-local
  or non-fork config file)
* .vimrc.before contains a list of all options that can be set
* .vimrc.before.local is where these options would actually be set
* support .vimrc.before and .vimrc.before.fork in install scripts
2013-09-05 01:34:43 -06:00
Ferhat
7cc2115660 Update bootstrap.sh
See discussion in: https://github.com/spf13/spf13-vim/issues/409
I've tried this script myself too and it works. Please have a look
2013-08-01 03:17:35 +02:00
Jacob Walker
f0ce722023 Installer: Define Git URI for Easier Forking 2013-07-31 11:12:02 -05:00
spf13
f4ef06088c making new installer posix compliant 2013-07-29 22:25:12 -04:00
Ferhat
c5a5bf7fa3 Update bootstrap.sh 2013-07-22 02:05:12 +02:00
Ferhat
f705335f0a Update bootstrap.sh
Replacing _#!/usr/bin/env_ bash with _#!/bin/bash_
2013-07-22 01:56:59 +02:00
Fernandos
045777a89c refined do_backup(), removed lnif(), added fork_maintainer flag, creating empty .vimrc.local now 2013-07-17 04:22:16 +02:00
Fernandos
809b0c8d22 re-enabling backup script 2013-07-16 23:24:47 +02:00
Fernandos
7f0431c609 Fixed incorrect quoting and closing issue #190 and similar problems with vundle. 2013-07-16 23:21:17 +02:00
Fernandos
e429210b09 refactored bootstrap.sh into seperate functions. Fixed an installer bug that caused dead and circular symlinks and also failed at git clone. 2013-07-16 23:02:48 +02:00
Sebastian Hahn
966553b8a4 Use https links where possible
I've gone through the entire repository, checking all http:// links to
see if the corresponding https urls would also work. This is especially
important when asking the user to run a script they fetched via curl,
because in the case of a mitm they will have no way at all to detect
that something malicious is going on.
2013-06-23 17:27:51 +02:00
Ryan Raub
455dc0a8cd Added the branch via bash variable to the git pull command when updating. 2013-04-24 15:41:25 -07:00
Josh Betz
461cce0235 Set endpath properly
Set endpath to the location it's being called from so we can
check if we're in a git directory or not
2013-04-02 09:19:43 -05:00
Josh Betz
7677bdaf86 Link to directory of bootstrap
If we're already in a git directory, we should link the files here.

Use case: I add spf13-vim as a submodule of my dotfiles.
2013-04-01 21:34:47 -05:00
Martin Grohmann
85b69632de symlink override
this fixes the Issue #260.
https://github.com/spf13/spf13-vim/issues/260

If a old symlink of .vimrc exists the new symlink is created by force.
2013-01-04 12:04:13 +01:00
Steve Francia
d1f5190f3e Merge pull request #232 from beyondwords/3.0
Ensure vim uses compatible shell in bootstrap
2013-01-01 15:05:56 -08:00
Eric Hansen
70694c373c Fixed echo printing out \n's 2012-12-05 20:23:41 -05:00
F. Gabriel Gosselin
6ae291bf41 Ensure vim uses compatible shell
If you're using fish or some other shell, this will keep the install from failing.
2012-11-24 13:26:21 -08:00