metacon 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- mcon(){
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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.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-21 00:00:00 Z
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