Wesley Schwengle IncludeIf: A digital space written in pencil Articles Series Answerrit /dev/null About

Latest articles

I just wanted PHP 8.2 (Composer had other ideas)

Create a Laravel 12 project targeting PHP 8.2 while running 8.4. Composer said no. This is the docker workaround, and the permission fix that followed.

2026-04-21

Yet Another CLI framework

YA::CLI is a Perl CLI framework that eliminates boilerplate by auto-discovering subcommands, handling POD help pages, and using Moo roles — so you just write the logic.

2026-04-07

Living on the edge: truncating the path on your PS1

How to build a zsh prompt that dynamically truncates long paths based on terminal width. Uses a custom precmd hook and Zig-Zag logic to keep PS1 clean.

2026-03-10

Latest answers

Question: How to avoid killing an i3 scratchpad window

Why i3's scratchpad_state is always none in get_tree, how to find it on the floating_con parent, and a script to avoid killing scratchpad windows by mistake.

2026-05-06

Question: How can you configure grub to use a specific kernel?

Configure GRUB to boot specific kernels on Debian using GRUB_DEFAULT, menu IDs, or saved defaults. Includes submenu handling and troubleshooting.

2026-03-18

Latest snippets

zsh: drop sed for regexp-replace and use zstyle to avoid hardcoding things in a script

Use zsh's built-in regexp-replace instead of sed for string substitution, and zstyle to avoid hardcoding values in your scripts and functions.

git status can now compare branches

Git now lets git status compare your current branch with both upstream and push branches using status.comparebranches, making divergence instantly visible.