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
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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
$HOME/.config/fishpaths with the canonical$__fish_config_dirvariable for better portability across machinesdot_fishlocal variable to reduce repetition in the user-dots sourcing blockset -gx LESS -Runder a new "Misc Configuration" section to ensure colors render correctly in the less pagerManual Verification
echo $__fish_config_dirand confirm it resolves to your fish config directoryecho $LESSand confirm it outputs-Rman ls(or any man page) and confirm colored output renders correctly in the pagerls,lt, andcleanupfunctions work as expected (CachyOS override block)Ctrl+Rhistory search still workssecrets.fishexists in~/.config/.user-dots/fish/, confirm it is still sourcedlocal.fishexists in~/.config/.user-dots/fish/, confirm it is still sourced