feat(shell): add CachyOS-derived tricks.fish and copy utilities #22

Merged
rootiest merged 1 commits from feat/cachyos-base-utilities into main 2026-05-29 17:38:17 +00:00
Owner

Summary

  • Adds conf.d/tricks.fish: sources ~/.fish_profile, prepends ~/.local/bin and ~/Applications/depot_tools to PATH, registers bang-bang (!!/!$) key bindings, overrides history to show timestamps, and provides a backup utility
  • Adds functions/copy.fish: smarter cp wrapper that strips trailing / from source directories before cp -r, fixing a CachyOS-specific broken-copy quirk
  • Refactors several if ... end blocks in config.fish to single-line type -q ...; and ... style, and explicitly sources copy.fish on startup
  • Syncs README.md to document all new utilities (copy, backup, history override) and adds tricks.fish to the structure table

Manual Verification

  • Open a new Fish shell and confirm ~/.local/bin is in $PATH (echo $PATH | tr ' ' '\n' | grep local)
  • Type ls /tmp then type !! and confirm the previous command is inserted and runs
  • Run backup ~/.config/fish/config.fish and confirm config.fish.bak is created alongside the original
  • Run copy ~/some-dir /tmp/ and confirm the directory is copied without a trailing-slash artifact (i.e. /tmp/some-dir not /tmp/some-dir/)
  • Run history and confirm each entry is prefixed with a YYYY-MM-DD HH:MM:SS timestamp
## Summary - Adds `conf.d/tricks.fish`: sources `~/.fish_profile`, prepends `~/.local/bin` and `~/Applications/depot_tools` to `PATH`, registers bang-bang (`!!`/`!$`) key bindings, overrides `history` to show timestamps, and provides a `backup` utility - Adds `functions/copy.fish`: smarter `cp` wrapper that strips trailing `/` from source directories before `cp -r`, fixing a CachyOS-specific broken-copy quirk - Refactors several `if ... end` blocks in `config.fish` to single-line `type -q ...; and ...` style, and explicitly sources `copy.fish` on startup - Syncs `README.md` to document all new utilities (`copy`, `backup`, `history` override) and adds `tricks.fish` to the structure table ## Manual Verification - [x] Open a new Fish shell and confirm `~/.local/bin` is in `$PATH` (`echo $PATH | tr ' ' '\n' | grep local`) - [x] Type `ls /tmp` then type `!!` and confirm the previous command is inserted and runs - [x] Run `backup ~/.config/fish/config.fish` and confirm `config.fish.bak` is created alongside the original - [x] Run `copy ~/some-dir /tmp/` and confirm the directory is copied without a trailing-slash artifact (i.e. `/tmp/some-dir` not `/tmp/some-dir/`) - [x] Run `history` and confirm each entry is prefixed with a `YYYY-MM-DD HH:MM:SS` timestamp
rootiest added 1 commit 2026-05-29 17:37:15 +00:00
Adds conf.d/tricks.fish (PATH additions for ~/.local/bin and depot_tools,
bang-bang key bindings, history timestamp override, backup utility) and
functions/copy.fish (smarter cp wrapper that strips trailing slashes from
source directories, fixing a CachyOS-specific cp quirk).

Updates config.fish to explicitly source copy.fish on startup and refactors
several conditional blocks to single-line style for consistency. Syncs
README.md to document all new utilities.
rootiest merged commit a88800f94f into main 2026-05-29 17:38:17 +00:00
rootiest deleted branch feat/cachyos-base-utilities 2026-05-29 17:38:17 +00:00
Sign in to join this conversation.