Commit Graph

87 Commits

Author SHA1 Message Date
speedAD
bb5b09f81e fixed nvim symlik 2015-11-02 01:07:36 +08:00
Chris DeLuca
9f78da8736 Preliminary support for neovim
A simple change to support neovim. Fixes #774.

Move nvimrc file inside .nvim directory

Only install neovim support if neovim is being used

Use program_exists function instead of vimscript

Made a hasty mistake and added vimscript to a bash script :X

Neovim not existing no longer stops script

Also correct `endif` to `fi`.

Refactor program_exists naming

Changed `program_exists` to `program_must_exist`, which throws an error which halts the script if the program is not found, and refactored `nvim_exists` to be the more general `program_exists`, which does not throw an error if the program is not found.

Refactor program_exists and program_must_exist

`program_must_exist` uses `program_exists` now, instead of repeating code. Changed `type` to `command -v` in `program_exists` to be more POSIX compliant. Refactored status code conditional in `program_exists` to remove double negatives. Thanks to @mkwmms for the suggestions.

Preliminary support for neovim

A simple change to support neovim. Fixes #774.

Move nvimrc file inside .nvim directory

Refactor program_exists naming

Changed `program_exists` to `program_must_exist`, which throws an error which halts the script if the program is not found, and refactored `nvim_exists` to be the more general `program_exists`, which does not throw an error if the program is not found.

Refactor program_exists and program_must_exist

`program_must_exist` uses `program_exists` now, instead of repeating code. Changed `type` to `command -v` in `program_exists` to be more POSIX compliant. Refactored status code conditional in `program_exists` to remove double negatives. Thanks to @mkwmms for the suggestions.
2015-09-02 09:47:40 -04:00
Johnny Robeson
1ceb2cadc7 add missing space after APP_PATH 2015-03-06 23:50:56 -05:00
Johnny Robeson
bec5abacd0 align setup_fork_mode arguments 2015-03-06 23:50:15 -05:00
Johnny Robeson
adefb4edd4 align create_symlinks arguments 2015-03-06 23:50:15 -05:00
Johnny Robeson
97376b4af9 mkdir -p $repo_path instead of making bundle dir explictly 2015-03-06 23:50:15 -05:00
Johnny Robeson
99a56d8204 BC BREAK: rename git_uri to REPO_URI 2015-03-06 23:50:15 -05:00
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