nixCraft, to linux
@nixCraft@mastodon.social avatar
chfkch,
@chfkch@ruhr.social avatar
Edent, to bitwarden
@Edent@mastodon.social avatar

Just checked my - I have over 1,000 passwords stored in there 😱

Should I go through and delete the ones I never use?
Or should I just ignore the obsolete ones?

chfkch,
@chfkch@ruhr.social avatar

@Edent
I bet it is even easier in . At least better to read.

jon, to rust

Anyone have thoughts on running as a daily driver? I've been in love with the past couple of months, but nushell looks fascinating.

b0rk, (edited ) to random
@b0rk@jvns.ca avatar

every git command I use

permalink: https://wizardzines.com/comics/every-git-command/

das_g,
@das_g@chaos.social avatar

@b0rk For , the corresponding command would probably be

history | where command =~ '^(git\s+[^ ]*)' | uniq-by command -c | sort-by count -rn | each {|it| $"($it.count | fill -a r -w 7) ($it.value.command)"} | to text

nblumhardt,

@das_g @b0rk tried this with and I ended up with: history | get command | parse --regex ^git\s+([^ ]*) | uniq | sort

wraptile, to linux
@wraptile@fosstodon.org avatar

after a day of playing around with all shells:

  • is awesome but a bit clunky
  • is great, will probably be my runner
  • very similar to nushell but treats everything as a Python objects instead of tables. Will come back to this one. No install yet.
  • as good as it gets for classic shells
  • , - no real reason to run it unless you're locked into bash ecosystem
  • - couldn't get it to work but there's a lot of good work here. Next time.
arnau, to random
arnau, to random

For the last few evenings I had some fun translating some jq transformations to https://www.seachess.net/notes/from-jq-to-nushell/

schrottkatze, to random

Little project idea I've been hacking on: a dataflow language inspired by (syntax wise), with pipelines and stuff for image/video/audio processing, shaders, or whatever else you want

the problem is i have no idea how to do langdev lmao

i now have a logos based lexer and that's it lmfao

and i'm thinking to either just do whatever i want, aka not look up how to do shit properly (that hurts) or... idk actually, since i have no idea how to do shit properly and don't have the attention span to go through a langdev book lmao

schrottkatze,

also, little note here: is an amazing shell that's really intuitive and better then posix shells. i'm working on writing a few posts about it, that are designed to be entirely noob friendly to teach it to ppl who are interested

schrieveslaach, to random German

Let's see if my attempt of integrating the a.k.a. into will be successful.

https://github.com/nushell/nushell/pull/10723

jntrnr, to random

Just released 0.86. Some cool improvements in this one, including fish-style directory completions.

https://www.nushell.sh/blog/2023-10-17-nushell_0_86.html

arch, to random
@arch@floofy.tech avatar

I think my next shell experiment is going to be oilshell. I don't expect it to differ too much from bash day to day. Nushell does some interesting stuff but I'm not sure it's quite what I want.

dhalucario,

@arch I like the idea of but in practice it's really cumbersome to use from my experiences. It's hard to get to the place I actually want because there is no "How to navigate a big JSON object made of objects and arrays".

rlonstein, to Kubernetes
@rlonstein@mastodon.sdf.org avatar

I've spent a couple of weeks using at work because I do (way too much) json and yaml fiddling in ( ). It's way more ergonomic than doing things with bash, jq, yq, mlr, awk, Perl (with only the core libs available), etc. Figured I'd just go with it and maybe introduce it to my peers. Folks noticed the formatted output right away as better so now I've written up daily examples and been asked to demonstrate it.

finestructure, to random
@finestructure@mastodon.social avatar

I really want to give a go as my login shell but I'm struggling with weird a error. Last time I tried I set up a scripts module dir .config/scripts with some nu scripts I want sourced on launch. I have in env.nu

$env.NU_LIB_DIRS = ($env.NU_LIB_DIRS | append [
'~/.config/nushell'
])

and in config.nu

use scripts *

But now I get “module directory is missing a mod.nu file” on launch. There •is• a mod.nu file in the directory and this setup worked briefly.

Baffled 🤔

finestructure,
@finestructure@mastodon.social avatar

Ok, I've figured this out. The problem is that I had an unrelated scripts directory in the directory I was launching from. That seems to override my NU_LIB_DIRS setting and lead to the error.

I've now moved my scripts to .config/nushell/_scripts and now use _scripts * works fine.

https://discord.com/channels/601130461678272522/614593951969574961/1153269044728840264

maxd, to random
@maxd@mastodon.social avatar

Built-in support for structured data (lists and tables) in is great, but I feel strong typing and sane syntax sealed the deal for me. Now I feel confident writing 3+ lines of a shell script thanks to Nushell, and I'm more inclined to separate those out into custom commands/functions. With strong typing and LSP support I can get inlay hints with inferred types while editing scripts, not even mentioning errors highlighting in the interactive shell itself. Massive productivity boost

ljrk, to rust
@ljrk@todon.eu avatar

Hmmm, maybe I can move some of my shell scripts over to using :

https://www.kurtlawrence.info/blog/gufdjkjkq7wphfhkvrumcvmqdr4r69

I initially thought about doing that with Go since Go is a bit more ergonomic for just spiffing out code IMHO, but the tooling around Rust is simply surpassing Go at an incredible pace.

zenora,
@zenora@hachyderm.io avatar

@ljrk http://www.nushell.sh is maybe a useful alternative too.

Written in and the language is rust-like with structured data piped between each command.

santiago, to random
@santiago@masto.lema.org avatar

Had to give up getting on GrandPapi, my trusty :rpi: 1. Rust build failed after filling up 1.6G of remaining space. One day the old guy will get a newer larger SD-Card 🤷🏻‍♂️ crazy to think how many years it has been surviving (doing mostly nothing except getting updates).

finestructure, to random
@finestructure@mastodon.social avatar

Is there a default directory for functions that gets scanned and loaded?

For example in , any function in ~/.config/fish/functions gets loaded as an executable command.

Best I can tell, I'd have to add a source <myscript> line to my startup config for each new command. There's probably a better way, isn't there?

santiago, to random
@santiago@masto.lema.org avatar

That part of is a tad annoying. So either I change all my code snippets in or don’t make my default shell

santiago, to random
@santiago@masto.lema.org avatar

Turns out installing on :rpi: 3 via Rust is a bit time consuming.

Somehow compilation times are faster on my 20 Cores Mac Studio. Who would have thought ? I’ll check back on my tmux session tomorrow.

santiago, (edited ) to random
@santiago@masto.lema.org avatar

It just had never occurred to me that there could be a HomeBrew for Linux too.

Just discovered this because it was listed as the install method for
https://docs.brew.sh/Homebrew-on-Linux

santiago,
@santiago@masto.lema.org avatar

@akosma Well, I couldn’t figure a case where I’d need it. Except that one specific case of not having packages but I preferred the rust way as this is something I’d install anyway for other stuff.

hywan, to random
@hywan@fosstodon.org avatar

The case for Nushell, https://www.jntrnr.com/case-for-nushell/.

Relevant article about shells, and how Nushell pushes the boundaries further. I highly recommend reading it.

santiago,
@santiago@masto.lema.org avatar

@hywan I wish new tools would invest more into transitioning help.

For example in when I type a well known bash command it could just suggest the correct way. Transitions for a decades old habit would be made easier.

raito, to random
@raito@nixos.paris avatar

@tcltk @clacke @nixos @tcl interesting, how realistic Tcl can become a replacement for bash for building derivations and having phases, etc. ? (aka nixpkgs stdenv)

Did anyone try?

fgaz, (edited )
@fgaz@cdrom.tokyo avatar

@raito @tcltk @clacke @nixos I’ve been planning to try this since forever and I’ve been slowly packaging stuff to that end. and would go so well together!

The talk at reminded me of this again, but my list of ongoing side projects is a little too big at the moment 😅. Still, if anyone is working on it please let me know!

(sorry for the necropost, I just found the thread by browsing tags)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • magazineikmin
  • cubers
  • InstantRegret
  • cisconetworking
  • Youngstown
  • vwfavf
  • slotface
  • Durango
  • rosin
  • everett
  • kavyap
  • DreamBathrooms
  • provamag3
  • mdbf
  • khanakhh
  • modclub
  • tester
  • ethstaker
  • osvaldo12
  • GTA5RPClips
  • ngwrru68w68
  • Leos
  • anitta
  • tacticalgear
  • normalnudes
  • JUstTest
  • All magazines