feat(shell): add CachyOS-derived tricks.fish and copy utilities #22
Reference in New Issue
Block a user
Delete Branch "feat/cachyos-base-utilities"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
conf.d/tricks.fish: sources~/.fish_profile, prepends~/.local/binand~/Applications/depot_toolstoPATH, registers bang-bang (!!/!$) key bindings, overrideshistoryto show timestamps, and provides abackuputilityfunctions/copy.fish: smartercpwrapper that strips trailing/from source directories beforecp -r, fixing a CachyOS-specific broken-copy quirkif ... endblocks inconfig.fishto single-linetype -q ...; and ...style, and explicitly sourcescopy.fishon startupREADME.mdto document all new utilities (copy,backup,historyoverride) and addstricks.fishto the structure tableManual Verification
~/.local/binis in$PATH(echo $PATH | tr ' ' '\n' | grep local)ls /tmpthen type!!and confirm the previous command is inserted and runsbackup ~/.config/fish/config.fishand confirmconfig.fish.bakis created alongside the originalcopy ~/some-dir /tmp/and confirm the directory is copied without a trailing-slash artifact (i.e./tmp/some-dirnot/tmp/some-dir/)historyand confirm each entry is prefixed with aYYYY-MM-DD HH:MM:SStimestamp