Sha256: 4d77e39e01b8de6a50b07e2f64859d3dfe882ac25e968e60d649498f831c62bb
Contents?: true
Size: 750 Bytes
Versions: 2
Compression:
Stored size: 750 Bytes
Contents
#!/usr/bin/env bash # TODO: make sure not to show role in prompt if no role differentiation is used. # TODO: put rvm and pythonbrew "source" lines here in case they weren't # installed beforehand so there's only one line to add to the user's # bashrc etc. mvm(){ # Essentially just let metacon do its thing but then do in the current # context anything it tells us to do (such as setting environment variables) tmpout=`mktemp /tmp/mc.XXXXXXXX` metacon -s $@ | tee $tmpout | grep -v '^:bash' # Run & display results eval `grep '^:bash' $tmpout | cut -d' ' -f2-` # Process any bash commands unlink $tmpout } metacon_ps1(){ [ $ORIG_PS1 ] || export ORIG_PS1="$PS1" export PROMPT_COMMAND='export PS1="$( metacon ps1 )"' }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
metacon-0.3.0 | shelp/metacon.bashrc |
metacon-0.2.4 | shelp/metacon.bashrc |