dotman 0.0.3.2 → 0.0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -10
- data/bin/dot +2 -2
- data/lib/dotman/version.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47db4de8cd357937cc89cbd170b0c7131224f28b
|
4
|
+
data.tar.gz: aa17b057f5f8f67bcc3b80fbf5b5a78b5d3ac214
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9ef108aebcc75859653c3e01da81c22fafcac9b9e5b7b70e42ddb4cf8a7ff4d31455d19bf22cdb98a471157d7c1e2a9a845520e291f310507df0ae10d1d378a
|
7
|
+
data.tar.gz: e2eb4e7f4cd7ef97010f9cbcb800e8ceddfc1b7ee07243da94ace81e7d3793200fda89c9f4a2f7916647b79b126ec639e0c3c3e46fe099dca267d9947957132a
|
data/README.md
CHANGED
@@ -1,14 +1,16 @@
|
|
1
1
|
# Dotman
|
2
2
|
|
3
|
-
This
|
3
|
+
This gem allows you to switch between different dotfiles on the same user account.
|
4
4
|
|
5
|
-
|
5
|
+
## Requirements
|
6
|
+
|
7
|
+
ruby 1.9.3, 2.0
|
6
8
|
|
7
9
|
## Installation
|
8
10
|
|
9
|
-
|
11
|
+
Download this repository:
|
10
12
|
|
11
|
-
|
13
|
+
git clone git@github.com:Timbinous/dotfiles.git
|
12
14
|
|
13
15
|
And then execute:
|
14
16
|
|
@@ -20,14 +22,33 @@ Or install it yourself as:
|
|
20
22
|
|
21
23
|
## Usage
|
22
24
|
|
23
|
-
To retrieve your dotfiles and store them
|
24
|
-
|
25
|
+
To retrieve your dotfiles and store them:
|
26
|
+
|
27
|
+
dot clone <git repository> <alias>
|
28
|
+
|
29
|
+
To use cloned dotfiles:
|
30
|
+
|
31
|
+
dot use <alias>
|
32
|
+
|
33
|
+
To list currently downloaded dotfiles:
|
34
|
+
|
35
|
+
dot alias list
|
36
|
+
|
37
|
+
or simply just
|
38
|
+
|
39
|
+
dot list
|
40
|
+
|
41
|
+
To change the alias name:
|
42
|
+
|
43
|
+
dot alias rename <old alias name> <new alias name>
|
44
|
+
|
45
|
+
To revert dotfiles back to original state:
|
46
|
+
|
47
|
+
dot use default
|
25
48
|
|
26
|
-
To
|
27
|
-
dot use alias
|
49
|
+
To create a new dotfiles directory with all current dotfiles located in the HOME directory:
|
28
50
|
|
29
|
-
|
30
|
-
dot use default
|
51
|
+
dot collect
|
31
52
|
|
32
53
|
## Contributing
|
33
54
|
|
data/bin/dot
CHANGED
@@ -15,7 +15,7 @@ when 'collect'
|
|
15
15
|
when 'list'
|
16
16
|
Dotman::DotfileCollection.show_all_aliases
|
17
17
|
when 'alias'
|
18
|
-
if ARGV[1] == '
|
18
|
+
if ARGV[1] == 'rename'
|
19
19
|
Dotman::DotfileCollection.change_alias(ARGV[2], ARGV[3])
|
20
20
|
elsif ARGV[1] == 'list'
|
21
21
|
Dotman::DotfileCollection.show_all_aliases
|
@@ -27,6 +27,6 @@ else
|
|
27
27
|
dot list : lists all downloaded dotfile aliases\n
|
28
28
|
dot use default : switch to the default dot files\n
|
29
29
|
dot collect : collects all dot files within a directory called dotfiles\n
|
30
|
-
dot alias
|
30
|
+
dot alias rename <old alias> <new alias> : changes alias from old to new\n
|
31
31
|
dot alias list : same as dot list"
|
32
32
|
end
|
data/lib/dotman/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -20,5 +20,6 @@ RSpec.configure do |config|
|
|
20
20
|
FileUtils.rm(File.join(ENV['HOME'], '.vim')) if File.symlink? (File.join(ENV['HOME'], '.vim'))
|
21
21
|
FileUtils.rm(File.join(ENV['HOME'], '.vimrc')) if File.symlink? (File.join(ENV['HOME'], '.vimrc'))
|
22
22
|
FileUtils.rm(File.join(ENV['HOME'], '.zshrc')) if File.symlink? (File.join(ENV['HOME'], '.zshrc'))
|
23
|
+
FileUtils.rm(File.join(ENV['HOME'], 'tim.zsh-theme')) if File.symlink? (File.join(ENV['HOME'], 'tim.zsh-theme'))
|
23
24
|
end
|
24
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dotman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.3.
|
4
|
+
version: 0.0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|