#nushell

2025-12-16

Как управлять миром с помощью Nu

Даже сравнительно простой мир, такой как ArtifactoryMMO , приподносит не мало неожиданностей. Хотя есть много примеров кода для управления этим миром из Javascript и Python, я выбрал более серьезный язык, расчитывая прикрутить туда какие-нибудь интересные алгоритмы машинного обучения. Но все равно слишком часто, по крайней мере при отладке, приходится отдавать отдельные команды и анализировать что получилось вручную. Несмотря на прекрасный REPL в Julia, один из лучших, что мне доводилось использовать, и для отладки своего кода, и просто как калькулятор, здесь это оказалось не очень удобно. Конечно, есть curl и jq, но по эргономичности он тоже не идеален. Не curl-ом единым, удобный HTTP-клиент встроен, например, в PowerShell. Но мне захотелось чего-то нового и прогрессивного, и я решил посмотреть Nu . Эта статья предназначена, чтобы привлечь к этому shell любителей MMO-игр, и заинтересовать MMO-играми пользователей nu-shell, а если повезет, заинтересовать обоими темами тех, кто раньше про них и не знал.

habr.com/ru/articles/977422/

#nushell #mmo #api

2025-12-14

This week in Nushell #329

mander.xyz/post/43655087

Cédric Delalande :ruby:MoskitoHero@ruby.social
2025-12-14
2025-12-14

#freesoftwareadvent day 14

#nushell is ... Another shell for your lovely terminal.
It's not remotely POSIX-compliant. But for that, it allows you to treat every program's output as structured data. Converting from yaml to json is as simple as 'cat file|from yaml|to json' (and even that is made more complicated than need be for the example). Many native commands are reimplemented to return structured data, and the rest can be parsed.

2025-12-12

Been using #nushell today to fix something that was too gnarly to do with bash, and go was a too much.

#nushell was just sweet spot.

Hubert Klein Ikkinkmrhaki@mastodon.online
2025-12-11

Checking if a string value starts or ends with a given string in #Nushell: blog.mrhaki.com/2025/12/nushel

Hubert Klein Ikkinkmrhaki@mastodon.online
2025-12-10
2025-12-02

#AdventOfCode Day 2 in #nushell
Unoptimised and runs quite slowly, but I've had worse so ...

Part 1: This code takes the input string, splits it into rows and "from" and "to" columns, and casts the strings to integers. Then, in parallel, the sequence of integers from "from" to "to" is filtered to only keep those numbers that are even (so they can be split cleanly in half) and then for which each of the two halves are equal. The latter check uses a function to split each number in half by taking a substring from 0 to the middle (which is the length integer divided by 2) and the substring from the middle to the end.Part 2: This code parses the input similarly to Part 1, but only checks if there are repeats in each number. This check divides the number (as a string) into chunks of varying width, from width 1 to half of the length of the string. For each chunked number, a function checks if all chunks are equal. This check is a reduce or fold function, which accumulates by making sure each item is equal to the previous. In hindsight, a window function may have been simpler.
2025-11-29

This week in Nushell #327

mander.xyz/post/42720497

Sr. Estegosaurio 🦕SrEstegosaurio@mstdn.social
2025-11-29

Amazing Nushell W.
Now I will not be opening regexr.com every time I need a somewhat complex regexp.

nushell.sh/blog/2025-11-29-nus

#nushell #shell #terminal #linux #regex

2025-11-29

#Nushell 0.109.0

“Today, we're releasing version 0.109.0 of Nu. This release adds the option to use regex in the explore command and a bunch of bug fixes and other small tweaks.”
nushell.sh/blog/2025-11-29-nus

2025-11-29

- я не понимаю, как готовить рабочие пространства rust, а именно, как без ручной работы и строения велосипедов указать для установки все имеющиеся бинарные крейты. И не я один, [по-видимому](github.com/rust-lang/cargo/iss).
- запускаем `cargo build --release`, видим в `target/release/` кучу странных файлов `.d`, ленимся искать среди них что-то полезное и велосипедим команду на #nushell
```nu
ls --long | where type == file | where { |f| ($f.mode | str substring 2..2) == "x" } | select name
```
После вручную копируем в `~/.cargo/bin/` то, назначение чего примерно понимаем.
- или же смотрим в `pacman -Fl wezterm`, какие бинарники входят в комплект, и вручную запускаем отдельные `cargo install --path wezterm` и `cargo install --path wezterm-mux-server`
- при попытке запуска `wezterm connect SSHMUX:termux` оно ругается на несоответствие версий, поэтому на arch тоже собираем из git

2025-11-23

Ну и ладно, я могу и сам пошерстить. Только я не буду держать всё в голове либо в неструктурированных заметках, как делал это раньше, я буду собирать структурированные данные! В таблички я не умею и учиться не хочу (много кнопок, фу), поэтому буду использовать #kdl и тыкать #nushell.

JDrivenjdriven
2025-11-16
JDrivenjdriven
2025-11-09

Nushell Niceties: Create Query Parameters For URL

The build-in HTTP client in Nushell can be used to interact with REST APIs and websites. If the URL you want to invoke has query parameters than you can use the url build-query command.

A blog by @mrhaki

jdriven.com/blog/2025/11/Nushe

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst