[-] gamma@programming.dev 6 points 1 year ago

I get annoyed by differences with (Ba|Z)sh when I try Fish, but nushell is so much its own thing that it's fun.

[-] gamma@programming.dev 6 points 1 year ago* (last edited 1 year ago)

Scrubbing through the video, this hurts my soul

echo $(echo $STRING | sed 's/World/Bash/')

For variables bash has PE forms:

echo ${STRING/World/Bash}

I miss these too much when I try Fish.

[-] gamma@programming.dev 5 points 2 years ago

The "$@" doesn't do that you think it does in an alias. It gets expanded on alias creation.

[-] gamma@programming.dev 6 points 2 years ago

8GB memory + two Firefox profiles makes things difficult on my laptop.

[-] gamma@programming.dev 5 points 2 years ago* (last edited 2 years ago)

Our group did a two-part Microscope-like after a "season" of 14 sessions to wrap up a ton of loose ends and set up the next season. It was super satisfying to zoom in on only what the players wanted to see and resolve.

Our first session of January is going to be another Microscope session too, we've got a giant pointcrawl to backtrack and see the fallout of our action or inaction.

[-] gamma@programming.dev 6 points 3 years ago* (last edited 3 years ago)
[-] gamma@programming.dev 6 points 3 years ago* (last edited 3 years ago)

Typically find "$HOME/docs", but with a few caveats:

  • In Zsh or Fish, the quotes are unnecessary: find $HOME/docs

  • If I'm using anything potentially destructive: mv "${HOME:?}/bin" ...

  • Of course, if it's followed by a valid identifier character, I'll add braces: "${basename}_$num.txt"

[-] gamma@programming.dev 5 points 3 years ago* (last edited 3 years ago)

"Always configuring" isn't what Arch requires. It requires you to be tolerant of every so often dealing with a bug or two. Currently, the Arch-packaged version of Waybar has a regression which prints fractional seconds when using %T or %S specifiers. A tad annoying, and I could fix it by switching to waybar-git, where it's been patched. But that hasn't hit my threshold of annoyance, as I bounce between Sway and KDE.

The grub issue was a bigger deal, and while I knew how to resolve it (liveboot → lsblk and fdisk -l got me all the info I needed, then cryptsetup, mount -o subvol=@, arch-chroot, grub-install) the EOS blog had a nice guide.


But the reason why I chose it? Firewalld and Pipewire by default, customizable welcome app, and pretty simple otherwise.

NixOS will probably fully convert me in a year or two, but I've greatly enjoyed my time on Endeavour.

[-] gamma@programming.dev 6 points 3 years ago* (last edited 3 years ago)

I have two GitLab accounts and I've never given a credit card. That may be something new they're doing to try to reduce the number of spam accounts signing up. You could use a Privacy.com card, put in whatever name and address you want.

In any case, if you're looking at sites which host your repos, you're gonna have to deal with them being able to deny you service at any time. No way around it.

I'm considering hosting a gitea instance myself, only accessible over tailscale. But I've got to keep my Githib up because I maintain a few Zsh plugins.

[-] gamma@programming.dev 6 points 3 years ago

Here's one with a bit more context (and actually in Bash, rather than Zsh:

typeset -A any
while ((${#anys})); do
	any[${anys:0:1}]="/${anys:0:1}/!d;"
	anys=${anys:1}
done
anys=${any[*]}

Literal explanation

  • Iterate through the characters in $anys
  • For each character $c, define any[$c] to be the string /$c/!d (e.g.: any[x]='/x/!d')
  • Concatenate the values in ${any[@]}

Full contextThis is building a sed command to delete all lines which don't contain every character of the string $anys. The associative array and concatenation is to ensure I don't repeat myself when building the command. This is used in a program called dewordle, which prints all remaining words in a dictionary given the current known information in a game of wordle.

[-] gamma@programming.dev 6 points 3 years ago
ZDOTDIR="${${(%):-%x}:P:h}"

Literal explanation

  • ${(%)...} enable prompt sequences
  • %x a prompt sequence which expands to the current file being executed
  • :P resolve symlinks
  • :h the parent directory

Full contextThis line is in my ~/.config/zsh/.zshenv, which I symlink into my home directory. This resolves the symlink and sets $ZDOTDIR to the directory in which my zsh config files actually live, that way they aren't all in my home directory.

[-] gamma@programming.dev 6 points 3 years ago

The legacy of anarchychess must also continue

view more: ‹ prev next ›

gamma

0 post score
0 comment score
joined 3 years ago
MODERATOR OF