infect 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +3 -1
- data/lib/infect/command/prereqs.rb +9 -7
- data/lib/infect/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# ☣ Infect
|
2
2
|
|
3
|
-
|
3
|
+
Bundle manager for [pathogen](https://github.com/tpope/vim-pathogen).
|
4
|
+
|
5
|
+
Manage your entire vim config with a single '.vimrc' file. Much the same way that [sprockets](https://github.com/sstephenson/sprockets) lets you include web assets, infect will handle install vim plugins for you.
|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
@@ -1,18 +1,20 @@
|
|
1
|
+
require 'fileutils'
|
1
2
|
module Infect
|
2
3
|
class Command
|
3
4
|
class Prereqs < Command
|
5
|
+
def mkdirs(list)
|
6
|
+
list.each do |path|
|
7
|
+
FileUtils.mkdir_p path
|
8
|
+
end
|
9
|
+
end
|
4
10
|
def call
|
5
|
-
|
11
|
+
mkdir "~/.vim/bundle"
|
6
12
|
# create the cache directories for sensible.vim:
|
7
13
|
# TODO: Support Windows
|
8
14
|
if RUBY_PLATFORM =~ /darwin/
|
9
|
-
|
10
|
-
mkdir_p "~/Library/Vim/backup"
|
11
|
-
mkdir_p "~/Library/Vim/undo"
|
15
|
+
mkdirs %w(~/Library/Vim/swap ~/Library/Vim/backup ~/Library/Vim/undo)
|
12
16
|
else
|
13
|
-
|
14
|
-
mkdir_p "~/.local/share/vim/backup"
|
15
|
-
mkdir_p "~/.local/share/vim/undo"
|
17
|
+
mkdirs %w(~/.local/share/vim/swap ~/.local/share/vim/backup ~/.local/share/vim/undo")
|
16
18
|
end
|
17
19
|
end
|
18
20
|
end
|
data/lib/infect/version.rb
CHANGED