mastodon.gamedev.place is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server focused on game development and related topics.

Server stats:

5.3K
active users

#zsh

2 posts2 participants0 posts today

Mal eben die Shellhistory auf andere Geräte synchronisieren, oder auch selbst gesetzte Aliase? Das ist möglich mit Atuin. Der Server zum synchronisieren lässt sich natürlich auch ganz einfach selber hosten. Läuft alles verschlüsselt im Hintergrund

github.com/atuinsh/atuin/

Darauf aufmerksam geworden bin ich durch die Comics von Julia
wizardzines.com/

:neocat_laptop_notice:

✨ Magical shell history. Contribute to atuinsh/atuin development by creating an account on GitHub.
GitHubGitHub - atuinsh/atuin: ✨ Magical shell history✨ Magical shell history. Contribute to atuinsh/atuin development by creating an account on GitHub.

셸 언어는 때로 추하길 요구 받는다

hackers.pub/@hongminhee/2025/s

Hackers' Pub · 셸 언어는 때로 추하길 요구 받는다명령줄 인터페이스(CLI)는 컴퓨터와 상호작용하는 가장 오래된 방식 중 하나다. 그리고 이 인터페이스를 지배하는 것은 셸 언어다. 그런데 흥미로운 점은 셸 언어가 일반적인 프로그래밍 언어들과는 상당히 다른 설계 철학을 따른다는 것이다. 한 마디로 요약하자면, 셸 언어는 때로 “추함”을 받아들여야 한다.간결함의 미학 Bash나 zsh와 같은 전통적인 셸을 보자. grep -r "error" /var/log | wc -l와 같은 명령은 암호처럼 보일 수 있지만, 타이핑하는 데 몇 초밖에 걸리지 않는다. 이러한 간결함은 우연히 생긴 것이 아니다. 셸 환경에서는 사용자가 빠르게 입력하고, 결과를 확인하고, 다시 명령을 수정하는 반복적인 워크플로우가 일반적이다. 여기서 핵심은 “대화형” 경험이다.PowerShell의 딜레마 PowerShell은 마이크로소프트가 셸의 개념을 재정의하려 한 야심찬 시도였다. 객체 지향적 파이프라인, 일관된 동사–명사 구문, 그리고 자세한 매개변수 이름 등은 모두 코드의 가독성과 유지보수성을 높이기 위한 설계였다. 그러나 다음 명령을 비교해보자: Bash:find . -name "*.log" -mtime -7 \ | xargs grep "error" \ | sort \ | uniq -c<PowerShell:Get-ChildItem -Path . -Filter *.log ` | Where-Object {$_.LastWriteTime -gt (Get-Date).AddDays(-7)} ` | ForEach-Object {Select-String -Path $_.FullName -Pattern "error"} ` | Sort-Object ` | Group-Object ` | Select-Object Name,Count<PowerShell의 명령은 더 명확하고 자기 설명적이지만, 대화형 셸에서 빠르게 실험하고 반복하기에는 너무 장황하다. PowerShell 설계자들은 “추함”을 견디지 못하고 너무 많은 “다림질”을 해버린 것이다.균형점 찾기 흥미롭게도 최근의 Nushell 같은 현대적인 셸은 이 교훈을 받아들이고 있다. 구조화된 데이터 처리와 같은 PowerShell의 장점을 가져오면서도, 대화형 사용에 필요한 간결함을 유지하려 노력한다. 셸 언어의 진정한 성공은 “아름다운 코드”와 “효율적인 상호작용” 사이의 균형에 달려 있다. 이는 때로 완벽한 문법이나 일관성보다는 실용적인 “추함”을 수용해야 함을 의미한다.결론 프로그래밍 언어의 세계에서는 우아함과 일관성이 미덕이다. 그러나 셸의 세계에서는 타이핑 효율성, 속도, 그리고 대화형 적합성이 우선시된다. 이것이 바로 셸 언어가 때로 “추함”을 요구받는 이유다. PowerShell의 제한적인 성공은 이 기본적인 진실을 간과한 데서 비롯된 것일지도 모른다. 그리고 어쩌면 이것은 소프트웨어 설계 전반에 걸친 더 깊은 교훈을 담고 있다: 모든 도구는 그 사용 맥락에 맞게 설계되어야 한다는 것이다. 셸 언어에서는 그 맥락이 바로 키보드와 사용자 사이의 빠른 대화다.

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

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 went to some state parks with my partner today and wanted to do a photo blog on my notes page (reillyspitzfaden.com/notes/), and I wasn't looking forward to manually resizing/changing image formats over and over

It totally took me longer *this* time, but I figured out how to do it with zsh/imagemagick:

for file in ./**/*(.); magick $file -quality 65 -resize 35% $file.webp

reillyspitzfaden.comReilly Spitzfaden, Composer | NotesShort posts, thoughts, and interesting things from around the web — it's like Twitter but I own all my posts!