sheldon 6.0.6 → 6.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -15
- data/README.md +14 -10
- data/bin/sheldon +1 -1
- data/lib/sheldon/sheldon.rb +1 -1
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,17 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
NDk2YzU1M2MwYWU4NmVmMzg1NA==
|
6
|
-
data.tar.gz: !binary |-
|
7
|
-
YTQ0OWI3ZGNmMGM2YWMwZTgxOGRjYjZhNGVhZWRiNTUxYzUyMDZmYWRlMmU0
|
8
|
-
OWM1NDc4ZGFlN2MxY2U3NGY5Yg==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8805d72dd53f545cb2d0866ab8248ff0ee8741fd
|
4
|
+
data.tar.gz: cb8849544b47bf0a35d2b5cf372daccc31b2b08b
|
9
5
|
SHA512:
|
10
|
-
metadata.gz:
|
11
|
-
|
12
|
-
MzUwOGY1YTAxYjYxNDA1MDEzNGQwYjg4YjRhNzg5ZTZjNTdkNzU5YmRkNmEz
|
13
|
-
Zjk0YjM0YmM0Nzg5MWQ0ZDNhOGY2OTYyYTIzOWIyM2VmMjQ4NWE=
|
14
|
-
data.tar.gz: !binary |-
|
15
|
-
ZjdmYWI0OWIzOTFiOGZhMmZkZjIzNWM2MTk2YWM2ZjQ4YzY1MWUyMzUxYmUy
|
16
|
-
OGY2Yzc3MzI3ODc0YzgxYWMwY2EzZmQxNjhlY2M1MzI0ZjEyZjMyN2U1Nzgz
|
17
|
-
Njk0ZDE0NWUwMWE1MmQwMjE2YzJiMDljNjEwZDc3Y2I1ZDg4ODk=
|
6
|
+
metadata.gz: 8d4e3be674e17fa5344d855cd35ee72c2bd0773b2b10ac90795f3961b6722d720d3f6da51b098adfedf695fc23e069ade04e83319b4a4f4140748e6aff421d35
|
7
|
+
data.tar.gz: 441a4a5d81d46801db2332d517428873bcb416a9a23fd061d32016dddd995d2783305e26c36e059410549a95fc36edfa05b4abc1198beaff646e96d0f805e8de
|
data/README.md
CHANGED
@@ -3,7 +3,11 @@
|
|
3
3
|
[![Coverage Status](https://coveralls.io/repos/github/dvjones89/sheldon/badge.svg?branch=master)](https://coveralls.io/github/dvjones89/sheldon?branch=master)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/sheldon.svg)](https://badge.fury.io/rb/sheldon)
|
5
5
|
|
6
|
-
|
6
|
+
![Demo](https://user-images.githubusercontent.com/1914715/41686022-79aecb46-74da-11e8-8af2-1cda3fcc14bb.gif)
|
7
|
+
Sheldon makes it easy for you to manage your .dotfiles and configs across all your OS X / linux devices.
|
8
|
+
The video above demonstrates adding a config file to Sheldon (`sheldon learn`) and recalling this config (`sheldon recall`) on another host.
|
9
|
+
|
10
|
+
Check out my [5 minute demo video](https://www.youtube.com/watch?v=7z2a1AmWNfU) to see more of Sheldon in action.
|
7
11
|
|
8
12
|
### Requirements:
|
9
13
|
* Ruby 1.9.3 or above.
|
@@ -11,44 +15,44 @@ Sheldon makes it easy for you to manage your .dotfiles and configs across all yo
|
|
11
15
|
|
12
16
|
### Installation:
|
13
17
|
1) `gem install sheldon`
|
14
|
-
2) `sheldon setup
|
15
|
-
3) Sync your data directory across all your different hosts using your preferred method (
|
18
|
+
2) `sheldon setup ~/Dropbox/sheldon` to tell Sheldon where your existing data directory resides, or otherwise where a new data directory should be established.
|
19
|
+
3) Sync your data directory across all your different hosts using your preferred method (Dropbox, Google Drive, Git), so Sheldon's knowledge is available everywhere.
|
16
20
|
|
17
21
|
### How It Works
|
18
22
|
#### Add files/folders to Sheldon (sheldon learn)
|
19
23
|
Teach Sheldon about new files or directories using the `learn` command:
|
20
24
|
```shell
|
21
25
|
sheldon learn ~/.gitconfig
|
22
|
-
Recall Cue For File/Folder: git
|
26
|
+
Recall Cue For File/Folder: my git config
|
23
27
|
```
|
24
28
|
|
25
29
|
Sheldon will move the original file/directory into his data directory and symlink the file/directory back to its original location.
|
26
30
|
```shell
|
27
31
|
ls -al ~ | grep .gitconfig
|
28
|
-
.gitconfig -> /Users/dave/sheldon/git/.gitconfig
|
32
|
+
.gitconfig -> /Users/dave/Dropbox/sheldon/my git config/.gitconfig
|
29
33
|
```
|
30
34
|
|
31
35
|
#### Recall your files on other machines (sheldon recall)
|
32
36
|
Sheldon's `recall` command will symlink the file from the data directory to its correct location on any filesystem (even under different home directories):
|
33
37
|
|
34
38
|
```shell
|
35
|
-
sheldon recall git
|
39
|
+
sheldon recall "my git config"
|
36
40
|
|
37
41
|
ls -al ~ | grep .gitconfig
|
38
|
-
.gitconfig -> /
|
42
|
+
.gitconfig -> /home/vagrant/Dropbox/sheldon/my git config/.gitconfig
|
39
43
|
```
|
40
44
|
|
41
45
|
Pass the `-i` flag to Sheldon's `recall` command for interactive mode:
|
42
46
|
```shell
|
43
47
|
sheldon recall -i
|
44
|
-
Recall
|
45
|
-
Recall
|
48
|
+
Recall my git config (Y/N): Y
|
49
|
+
Recall my ZSH config (Y/N): Y
|
46
50
|
```
|
47
51
|
|
48
52
|
#### Open Your Configs In A Flash (sheldon open)
|
49
53
|
Want to quickly tweak that config file but can't remember where it resides on your system? No worries, Sheldon's got your back:
|
50
54
|
```shell
|
51
|
-
sheldon open
|
55
|
+
sheldon open "my git config"
|
52
56
|
# Your ~/.gitconfig will be opened in your $EDITOR
|
53
57
|
```
|
54
58
|
|
data/bin/sheldon
CHANGED
@@ -68,7 +68,7 @@ module CLI
|
|
68
68
|
if options[:i]
|
69
69
|
cue_options.each do |recall_cue|
|
70
70
|
answer = prompt.yes?("Recall #{recall_cue}?")
|
71
|
-
with_exception_handling { sheldon.recall(recall_cue) if answer
|
71
|
+
with_exception_handling { sheldon.recall(recall_cue) if answer == true }
|
72
72
|
end
|
73
73
|
else
|
74
74
|
recall_cue ||= cue_picker("What would you like to recall?", cue_options)
|
data/lib/sheldon/sheldon.rb
CHANGED
metadata
CHANGED
@@ -1,83 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sheldon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Jones
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: tty-prompt
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: coveralls
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
description: Another config and dotfile manager for unix environments
|
@@ -107,17 +107,17 @@ require_paths:
|
|
107
107
|
- lib
|
108
108
|
required_ruby_version: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
|
-
- -
|
110
|
+
- - ">="
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: '0'
|
113
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
119
|
rubyforge_project:
|
120
|
-
rubygems_version: 2.
|
120
|
+
rubygems_version: 2.6.14.1
|
121
121
|
signing_key:
|
122
122
|
specification_version: 4
|
123
123
|
summary: Another config and dotfile manager for unix environments
|