social.coop is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Fediverse instance for people interested in cooperative and collective projects. If you are interested in joining our community, please apply at https://join.social.coop/registration-form.html.

Administered by:

Server stats:

489
active users

#zsh

6 posts5 participants0 posts today

Okay, now I'm so lazy that I'm writing a zsh script to automatically activate a `venv` if it's in the current directory and deactivate on any parent directories.

// check code in first reply, change `TRUST_DIR` and `venv` if you prefer another name.

#linux#macOS#gentoo
Continued thread

It's possible you've not heard of #boxyBSD

I was lucky to get a TIL moment when @stefano boosted it's existence into my feed.

However you should know about it, learn something about the user perspective from proxmox in the process, while working with a boxyBSD VM.

Here are some nice screencaps of the boxyBSD site so you can ask nicely for a VM and learn to play with one of the *BSD flavours from a distance.

I'm sure you can duckduckgo the address of boxyBSD when you analyze the screencaps, right?

🖋️ #bash #proxyLB #freeBSD #boxyBSD #sh #zsh #ksh #csh #netBSD #openBSD #POSIX #proxmox #loadbalancer

Continued thread

It has arrived. proxyLB v1.1.0 the loadbalancer for proxmox clusters. Instead of telling you the features of this major version I invite you to read about it yourself, download proxyLB then play with it.

As with any great Open Source project, this has grown out of a necessity that @gyptazy has for his other amazing project boxyBSD, which just needs a versatile tool like this.

Now go and play.

gyptazy.com/introducing-proxlb

🖋️ #bash #proxyLB #freeBSD #boxyBSD #sh #zsh #ksh #csh  #netBSD #openBSD #POSIX #proxmox #loadbalancer

Replied in thread

@tiang Guile is a strong candidate if you prefer Lisp-like features and #gnu integration. Otherwise, consider #python (using libraries like subprocess and shutil for system interactions) for its versatility and extensive ecosystem.

For a shell-like environment, #zsh and Fish (which I haven't tried, but is popular in the community) offer modern experiences while maintaining compatibility with existing #shell scripts.

Alright, spent my Sunday setting up the #fish shell.

It's basically now identical to my #zsh config, except without plugins (well apart from the pure prompt and the autopair).

It feels faster, the autocompletion looks cleaner and it's def faster than zsh.

Had to wrestle with ssh a lot, but I ended up using keyring and now all my shells work with ssh the same, which is nice.

I had to write my own custom color theme as well (Poimandres).

Let's see how it goes!

Gotten tired of those massive browsers hogging GB (*1024 = MB) of ram? Want to go back to the days of text based browsing?

Links has got you covered. For decades (lynx and later) links gives us back the nostalgic feel of *sh* based browsing, just like BitchX gives it with IRC in the shell.

Look how smooth and fast it works with DuckDuckGo

Continued thread

I have found an interesting quirk with my freeBSD installation, running on my SATA SSD, which I mount through an USB tray, directly to the USB port on the computer.

As long as i leave the second port of the USB tray open, everything runs fine and smooth. The moment I mount another drive in the second port, freeBSD only does the initial part of the startup sequence and then complains that it cannot go any further.

No further explanation given

Seeking for log files is not an option because the operating system itself doesn't boot.

Where in the documentation should I look for this type of issue?

🖋️ #bash #freeBSD #boxyBSD #sh #zsh #ksh #csh  #netBSD #openBSD #POSIX #AskFediverse

Due to my brain dead ISP which does not support IPv6 for clients in 2K25(!) I cant access my boxyBSD box.

boxyBSD is thus so far away from me :(

I have a client connection with fixed IPv4 IP somewhere, but it collapses when I use a free available IPv4 to IPv6 tunnel service.

Instead of sitting and twiddling my fingers on my Bass guitar(s) generating random() notes, I decided to get an image of the latest freeBSD and play with it locally, until I can get my ISP to provide all of us with a (set) of free IPv6 addresses because we pay them for a full service here in my country

>> log

$ wget -c download.freebsd.org/releases/
--2025-03-23 13:32:46-- download.freebsd.org/releases/
Resolving download.freebsd.org (download.freebsd.org)... 200.160.6.227, 2001:12ff:0:6224::15:0
Connecting to download.freebsd.org (download.freebsd.org)|200.160.6.227|:443... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 4826406912 (4.5G), 4255655894 (4.0G) remaining [application/octet-stream]
Saving to: ‘FreeBSD-14.2-RELEASE-amd64-dvd1.iso’

-14.2-RELEASE-amd64-dvd1 12%[++++ ] 559.57M 1.01MB/s eta 75m

<< ^Z

Yes they give a puny 1MB speed, you read that correctly

🖋️ #bash #freeBSD #boxyBSD #sh #zsh #ksh #csh #netBSD #openBSD #POSIX

I need to transition from Linux to Mac as I'm getting a Mac mini for work in a couple of weeks. Is zsh compatible with bash, as in: Do bash scripts generally run on zsh? If the answer is no, I will need to install the latest version of bash (which I believe is doable via Homebrew).

#macos #bash #zsh