havenwood changed the topic of #ruby to: Ruby 3.4.5, 3.3.9, 3.5.0-preview1 https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
phenom has quit [Quit: Everyone has a plan until they get punched in the face. -Mike Tyson-]
jmcantrell has joined #ruby
phenom has joined #ruby
<o0x1eef> A nice rbenv feature: the host system does not need to be running zsh or bash (I use oksh). I tried chruby at first but that has a hard dependency on bash|zsh.
Guest86 has joined #ruby
Guest86 has quit [Quit: Client closed]
mois3x has joined #ruby
jmcantrell has quit [Ping timeout: 245 seconds]
blacknova has joined #ruby
fercell has quit [Quit: ZNC - https://znc.in]
fercell has joined #ruby
cappy has joined #ruby
mois3x has quit [Quit: Client closed]
<testone> asdf?
<Rounin> 42/m/8%
<testone> df = ?
cappy has quit [Quit: Leaving]
<Rounin> disk free, of course!
brokkoli_origin has quit [Ping timeout: 252 seconds]
_whitelogger has joined #ruby
infinityfye has joined #ruby
dionysus69 has joined #ruby
thefuture__ has quit [Remote host closed the connection]
schne1der has joined #ruby
grenierm has joined #ruby
jankasi has quit [Ping timeout: 252 seconds]
smp has quit [Read error: Connection reset by peer]
smp has joined #ruby
splud has quit [Ping timeout: 276 seconds]
dionysus69 has quit [Ping timeout: 245 seconds]
LainIwakura has joined #ruby
dionysus69 has joined #ruby
LainIwakura has quit [Ping timeout: 272 seconds]
brokkoli_origin has joined #ruby
grenierm has quit [Ping timeout: 272 seconds]
Vonter has quit [Ping timeout: 276 seconds]
Vonter has joined #ruby
Vonter has quit [Ping timeout: 252 seconds]
Vonter has joined #ruby
szkl has joined #ruby
<o0x1eef> asdf is definitely worth a look, since I will want to manage nodejs and Python as well. Hopefully it works with oksh. Thanks!
Rounin has quit [Quit: Rounin]
Sampersand has joined #ruby
LainIwakura has joined #ruby
Rounin has joined #ruby
Rounin has quit [Changing host]
Rounin has joined #ruby
ghostbuster has quit [Server closed connection]
ghostbuster has joined #ruby
Sampersand has quit [Quit: Client closed]
mois3x has joined #ruby
mois3x has quit [Client Quit]
Sampersand has joined #ruby
LainIwakura has quit [Ping timeout: 272 seconds]
inline has joined #ruby
Sampersand71 has joined #ruby
Sampersand has quit [Quit: Client closed]
cappy has joined #ruby
LainIwakura has joined #ruby
isene has quit [Server closed connection]
isene has joined #ruby
jankasi has joined #ruby
<adam12> Rounin: lol.
splud has joined #ruby
Sampersand71 has quit [Quit: Client closed]
user71 has joined #ruby
LainIwakura has quit [Ping timeout: 272 seconds]
oznek has joined #ruby
oznek has quit [Quit: Leaving]
sam113102 has joined #ruby
sam113101 has quit [Read error: Connection reset by peer]
sam113102 is now known as sam113101
dionysus69 has quit [Ping timeout: 276 seconds]
Sampersand has joined #ruby
<havenwood> o0x1eef: I think an oksh port of chruby might just be a few lines of changes. At least back in the day (other than tests) you just needed to change `(( $UID != 0 ))` to `(( ${UID:-$(id -u)} != 0 ))` and mksh worked other than tests.
<havenwood> Mise seems to continue to get more popular.
<Sampersand> oksh, is that the shell?
<havenwood> Sampersand: I hadn't heard of it but looks like ksh lineage from the name.
<Sampersand> yeah, i looked it up on github
<havenwood> Oah, right, OpenBSD ksh.
<havenwood> I wish I liked Fish more but just sticking to zsh. Funny I don't mind scripting in Fish at all but am too used to posy conventions.
<havenwood> Running last command in this or that way I don't do in scripting, but feel often foiled using command line interface when my habits don't work.
<Sampersand> i find that 99% of my scripting needs are simple aliases
<Sampersand> IKR? ZSh has a multitude of ways to access last command, especially the last argument of the last command, and fish just doesn't
<Sampersand> `mkdir path/to/folder` then `cd <ESC+.>` or `cd !$` or `cd $_`. fish has none lol
<Sampersand> s/none/none afaict/
<havenwood> I think none is right. When I asked the Fish folk they gave me some ctrl- commands but they're not thorough. They have a hardcoded ctrl- for `sudo !!` 🤣.
<Sampersand> lol, that's one of my least common uses of expansion history
<Sampersand> `git diff master -- some/long/path/to/file.tzxt`. Oh, right i'm in a repo that needs `main` not `master`: `^master^main`
cappy has left #ruby [Leaving]
hightower2 has joined #ruby
LainIwakura has joined #ruby
jankasi has quit [Ping timeout: 260 seconds]
LainIwakura has quit [Ping timeout: 272 seconds]
LainIwakura has joined #ruby
jankasi has joined #ruby
Sampersand has quit [Quit: Client closed]
LainIwakura has quit [Ping timeout: 272 seconds]
LainIwakura has joined #ruby
<o0x1eef> havenwood: IIRC the 'RUBIES=()' syntax from /usr/local/share/chruby/chruby.sh was not supported - but mostly I just thought it was an interesting difference in architecture :) At least, it appears you can avoid this issue entirely by shelling out rather than source'ing a specific script
<o0x1eef> So, it still generates code your shell needs to evaluate but that code is minimal and mostly it is shelling out to /usr/local/bin/rbenv
<o0x1eef> That said chruby.sh is dead simple and awesome in its own right
<havenwood> o0x1eef: Yeah, rbenv is a garden of shims. They used to do funky stuff like have a C implementation of realpath but no more. https://github.com/rbenv/rbenv/blob/master/src/Makefile.in
<havenwood> Just a straightforward shim approach. And they seem to have gotten rid of the old rehashing issues that bothered folk. Just works. Since I use zsh and chruby is simpler, I like that path.
<havenwood> I like switching being fast, though haven't tried rbenv anytime recently. I dunno how much of a delta it is anymore. RVM is quite slow but ships MRVM (Mini-RVM that installs with RVM then uses chruby for switching) for speed, which cracks me up.
LainIwakura has quit [Ping timeout: 272 seconds]
LainIwakura has joined #ruby
<havenwood> Oops, wrong chat.
user71 has quit [Quit: Leaving]
Sampersand has joined #ruby
rvalue- has joined #ruby
rvalue has quit [Ping timeout: 248 seconds]
rvalue- is now known as rvalue
<Sampersand> havenwood did you know fish doesnt have `Hash`es
<Sampersand> wild!
<havenwood> Sampersand: I want to like it...
<Sampersand> ikr
<Sampersand> the thing people've always told me about zsh is that it's a lot of effort to learn, but once you do you'll be good atr it
<havenwood> My first Fish experience was fixing the chruby-fish plugin core loop.
<Sampersand> so the tradeoff is to not learn zsh and use something like fish which is easier
<havenwood> I haven't done a ton of Fish, but have found scripting in it fairly pleasant.
<havenwood> If they were posix I'd have such an easier time. I get dropping it but they dropped parts I'm married to too.
<Sampersand> like what
<havenwood> Just so many assumptions. I try the think I use across shells, and nope!
<havenwood> Decades of posixy shells and hours of fishy shells.
<havenwood> Or days maybe.
<Sampersand> yeah
<havenwood> If I had to switch I'd figure it out. I just can't quite pull the trigger.
<Sampersand> macos switching to zsh cemented it for me
<havenwood> If it was bash versus fish I'd already have switched.
<havenwood> Especially macOS's bash 3 (also lacking associative arrays).
<havenwood> What the heck even? Key value pairs? Never heard of 'em.
<Sampersand> i thought it had them
<havenwood> Sampersand: Bash 4 does.
<havenwood> (If I'm getting version numbers right.)
<Sampersand> i thought macos had it
<Sampersand> oh damn it doesnt
<havenwood> Sampersand: They won't ship Bash 4, hence the Zsh change.
<Sampersand> yeah ik that, i didnt realize bash 3 was so bad lol
<havenwood> Sampersand: Apple won't accept the license for Bash 4.
<havenwood> Sampersand: It is so, so bad.
<havenwood> They swiched to zsh out of license rage, but it was the right choice anyways.
<Sampersand> it was
<havenwood> I really dislike Bash 3 compliance as a req.
<havenwood> Luckily it's fading as macOS that default to Bash 3 fade.
<Sampersand> yeah
<Sampersand> dash support ftw
<Sampersand> Im surprised flipflops aren't being removed
<Sampersand> im glad that `$;` and co are tho lol
<Sampersand> s/glad/sort-of glad/
jmjl has quit [Remote host closed the connection]
jmjl has joined #ruby
jmjl has quit [Remote host closed the connection]
jmjl has joined #ruby
blacknova has quit [Quit: Connection closed for inactivity]
jmjl has quit [Remote host closed the connection]
jmjl has joined #ruby
graywolf has joined #ruby
graywolf has quit [Quit: WeeChat 4.7.0]
Sampersand has quit [Quit: Client closed]
infinityfye has quit [Read error: Connection reset by peer]
grenierm has joined #ruby
grenierm has quit [Ping timeout: 272 seconds]
phenom has quit [Ping timeout: 252 seconds]
Sampersand has joined #ruby
schne1der has quit [Ping timeout: 240 seconds]
LainIwakura has quit [Ping timeout: 272 seconds]
Sampersand has quit [Quit: Client closed]
Sampersand has joined #ruby
sam113102 has joined #ruby
sam113101 has quit [Remote host closed the connection]
sam113102 is now known as sam113101
jankasi has quit [Ping timeout: 252 seconds]
jankasi has joined #ruby
LainIwakura has joined #ruby
jankasi has quit [Ping timeout: 252 seconds]
LainIwakura has quit [Ping timeout: 272 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
denvermullets has joined #ruby
Sampersand has quit [Quit: Client closed]
jankasi has joined #ruby
<o0x1eef> When a language doesn't give you much you just have to do more with the basics. I think for shell scripting especially it is workable.
denvermullets has quit [Ping timeout: 248 seconds]
jhass has quit [Remote host closed the connection]
denvermullets has joined #ruby
smp has quit [Ping timeout: 265 seconds]
smp has joined #ruby