metacon 0.2.2 → 0.2.3
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/VERSION +1 -1
- data/lib/VERSION +1 -1
- data/lib/metacon.rb +5 -1
- data/lib/metacon/cli_helpers.rb +24 -0
- data/lib/metacon/command.rb +54 -3
- data/lib/metacon/loaders/index.rb +6 -6
- data/lib/metacon/loaders/python_brew.rb +22 -0
- data/lib/metacon/loaders/rvm.rb +3 -2
- data/lib/metacon/project.rb +45 -1
- data/lib/metacon/{loaders/helpers.rb → shorthand.rb} +24 -4
- data/lib/metacon/stat.rb +10 -1
- data/lib/metacon/switch.rb +3 -0
- data/metacon.gemspec +5 -3
- data/shelp/git-completion.bash +2739 -0
- data/shelp/metacon.bashrc +9 -1
- metadata +7 -5
data/shelp/metacon.bashrc
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
#!/usr/bin/env bash
|
2
2
|
# TODO: make sure not to show role in prompt if no role differentiation is used.
|
3
|
+
# TODO: put rvm and pythonbrew "source" lines here in case they weren't
|
4
|
+
# installed beforehand so there's only one line to add to the user's
|
5
|
+
# bashrc etc.
|
3
6
|
|
4
|
-
|
7
|
+
mvm(){
|
5
8
|
# Essentially just let metacon do its thing but then do in the current
|
6
9
|
# context anything it tells us to do (such as setting environment variables)
|
7
10
|
tmpout=`mktemp /tmp/mc.XXXXXXXX`
|
@@ -9,3 +12,8 @@ mcon(){
|
|
9
12
|
eval `grep '^:bash' $tmpout | cut -d' ' -f2-` # Process any bash commands
|
10
13
|
unlink $tmpout
|
11
14
|
}
|
15
|
+
|
16
|
+
metacon_ps1(){
|
17
|
+
[ -v "$ORIG_PS1" ] || export ORIG_PS1="$PS1"
|
18
|
+
export PROMPT_COMMAND='export PS1="$( metacon ps1 )"'
|
19
|
+
}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metacon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Joseph Wecker
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-10-
|
18
|
+
date: 2011-10-25 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
@@ -169,16 +169,18 @@ files:
|
|
169
169
|
- lib/metacon/command.rb
|
170
170
|
- lib/metacon/config.rb
|
171
171
|
- lib/metacon/init.rb
|
172
|
-
- lib/metacon/loaders/helpers.rb
|
173
172
|
- lib/metacon/loaders/index.rb
|
173
|
+
- lib/metacon/loaders/python_brew.rb
|
174
174
|
- lib/metacon/loaders/rvm.rb
|
175
175
|
- lib/metacon/project.rb
|
176
176
|
- lib/metacon/self_install.rb
|
177
|
+
- lib/metacon/shorthand.rb
|
177
178
|
- lib/metacon/stat.rb
|
178
179
|
- lib/metacon/switch.rb
|
179
180
|
- metacon.gemspec
|
180
181
|
- notes-dependency-tool.md
|
181
182
|
- notes.rdoc
|
183
|
+
- shelp/git-completion.bash
|
182
184
|
- shelp/metacon-installer.sh
|
183
185
|
- shelp/metacon.bashrc
|
184
186
|
- test/helper.rb
|