Comments (6)
No, we're not going to do anything tricky like that. If you find yourself needing to do some shell functions/piping across rbenv versions, you could simply:
for v in `rbenv versions --bare`; do RBENV_VERSION=$v gem list | grep "a b"; done
from rbenv-each.
Yea, I just basically took that and change it to call eval "$@"
and it seems to work great...
Would be cool if rbenv-each supported it.
from rbenv-each.
I want to refrain from doing eval internally since that is not how I want people to use rbenv-each.
However you can always execute bash interpreter with any script that you want:
rbenv each bash -c 'gem list | grep "a b"'
from rbenv-each.
Hm, your right. I forget off top of my head and I'm on road right now but
does rbenv support aliases? It could be a simple handy alias.
On Wed, Jan 21, 2015, 6:20 PM Mislav Marohnić [email protected]
wrote:
I want to refrain from doing eval internally since that is not how I want
people to use rbenv-each.However you can always execute bash interpreter with any script that you
want:rbenv each bash -c 'gem list | grep "a b"'
—
Reply to this email directly or view it on GitHub
#14 (comment)
.
from rbenv-each.
rbenv doesn't support aliases but your shell does ;)
alias rbenv-each-eval='rbenv each bash -c'
from rbenv-each.
I agree. However I do like git aliases even though they could just be
shell aliases :)
On Wed, Jan 21, 2015, 7:10 PM Mislav Marohnić [email protected]
wrote:
rbenv doesn't support aliases but your shell does ;)
alias rbenv-each-eval='rbenv each bash -c'
—
Reply to this email directly or view it on GitHub
#14 (comment)
.
from rbenv-each.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rbenv-each.