refactor(config): use $__fish_config_dir, quote paths, add dot_fish var #11

Merged
rootiest merged 1 commits from refactor/config-path-quoting-portability into main 2026-05-08 20:30:03 +00:00
Owner

Summary

  • Replace hardcoded $HOME/.config/fish paths with the canonical $__fish_config_dir variable for better portability across machines
  • Add proper quoting around all path strings to handle edge cases
  • Introduce a dot_fish local variable to reduce repetition in the user-dots sourcing block
  • Add set -gx LESS -R under a new "Misc Configuration" section to ensure colors render correctly in the less pager

Manual Verification

  • Open a new terminal and confirm fish starts without errors
  • Run echo $__fish_config_dir and confirm it resolves to your fish config directory
  • Run echo $LESS and confirm it outputs -R
  • Run man ls (or any man page) and confirm colored output renders correctly in the pager
  • Confirm ls, lt, and cleanup functions work as expected (CachyOS override block)
  • If fzf is installed, confirm Ctrl+R history search still works
  • If a secrets.fish exists in ~/.config/.user-dots/fish/, confirm it is still sourced
  • If a local.fish exists in ~/.config/.user-dots/fish/, confirm it is still sourced
## Summary - Replace hardcoded `$HOME/.config/fish` paths with the canonical `$__fish_config_dir` variable for better portability across machines - Add proper quoting around all path strings to handle edge cases - Introduce a `dot_fish` local variable to reduce repetition in the user-dots sourcing block - Add `set -gx LESS -R` under a new "Misc Configuration" section to ensure colors render correctly in the less pager ## Manual Verification - [x] Open a new terminal and confirm fish starts without errors - [x] Run `echo $__fish_config_dir` and confirm it resolves to your fish config directory - [x] Run `echo $LESS` and confirm it outputs `-R` - [x] Run `man ls` (or any man page) and confirm colored output renders correctly in the pager - [x] Confirm `ls`, `lt`, and `cleanup` functions work as expected (CachyOS override block) - [x] If fzf is installed, confirm `Ctrl+R` history search still works - [x] If a `secrets.fish` exists in `~/.config/.user-dots/fish/`, confirm it is still sourced - [x] If a `local.fish` exists in `~/.config/.user-dots/fish/`, confirm it is still sourced
rootiest added 1 commit 2026-05-08 20:29:34 +00:00
Replace hardcoded \$HOME/.config/fish paths with the canonical
\$__fish_config_dir variable for portability. Add proper quoting around
all path strings. Introduce a dot_fish local variable to reduce
repetition in user-dots sourcing blocks. Add LESS=-R for color support
in the pager.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
rootiest merged commit 4dff7632cd into main 2026-05-08 20:30:03 +00:00
rootiest deleted branch refactor/config-path-quoting-portability 2026-05-08 20:30:04 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rootiest/fish-config#11