veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

295
active users

#nushell

1 post1 participant1 post today

Hey wanna see a stupid #Nushell trick?

Making markdown sections and tables for the schema of a SQLite database (which I then paste into #TangentNotes to be published with #Nanoc)

```
(
open markdown.db
| schema
| get tables
| transpose name info
| each { |t| $"#### ($t.name)\n\n($t.info.columns | to md)\n" }
| to text
)
```

EDIT: removed a couple unnecessary steps in my pipe.

Continued thread

`sudo xbps-install wmenu clipman font-adobe-source-code-pro gdu btop micro fastfetch nushell syncthing`

`mkdir ~/.config/foot/`

`cp /etc/xdg/foot/foot.ini ~/.config/foot/foot.ini`

`micro ~/.config/foot/foot.ini`

Default shell: `shell=/usr/bin/nu`. It is possible to set #nushell as the login shell, but I would say it is unnecessary and on Void would require adding environment variables to `$nu.env-path` (github.com/nushell/nushell/iss), which is annoying.

GitHubnushell doesnt inherit /etc/locale.conf when used as a login shell · Issue #7941 · nushell/nushellBy rukai

Hello world! This is a human-maintained account for Nushell. Thanks Hachyderm for hosting us.

One way to introduce Nushell is using three "pillars" that form the core of the project:
1. Shell
2. Programming Language
3. Structured Data

1/N #nushell

Today I reimplemented my backup. Well, I finished it today, some things took time.

Nothing fancy, there is a systemd timer that runs a nu script. In the script I pull everything I want to backup with rsync and put it on a USB drive. That backup folder is rsync’ed to a flash drive in my SMB share on my router and rclone’d to a cloud.

This way, I can access files locally without a PC and from anywhere via the cloud, and 3-2-1 is satisfied, I guess.