How to Fix Shell Completions When Using Nix Direnv and Fish Shell

13 · Haseeb Majid · July 2, 2025, 12:11 a.m.
Summary
This blog post describes a solution for fixing shell completions in the Fish shell while using Nix and Direnv. The author shares insights on syncing the fish completions using a function that responds to changes in $XDG_DATA_DIRS, addressing an issue caused by recent updates to the Fish shell.