Install cfg alias on every machine (~/.bash_aliases) #9

Merged
yuri merged 1 commits from feat/cfg-alias-install into main 2026-10-27 20:20:08 +01:00
Owner

Fresh VMs had no cfg command — the alias lived only in the laptop bashrc. Module now creates ~/.bash_aliases with the alias and makes ~/.bashrc source it. Idempotent; verified interactively (type cfg + cfg status).

Bonus: ~/.bash_aliases is the ideal next file to track in fedora-dots — future aliases then sync themselves.

Fresh VMs had no cfg command — the alias lived only in the laptop bashrc. Module now creates ~/.bash_aliases with the alias and makes ~/.bashrc source it. Idempotent; verified interactively (type cfg + cfg status). Bonus: ~/.bash_aliases is the ideal next file to track in fedora-dots — future aliases then sync themselves.
yuri added 1 commit 2026-10-27 20:13:30 +01:00
The alias only existed where it was typed by hand; a fresh VM with
dots cloned had no cfg command. The module now always ensures:
- ~/.bash_aliases holds the cfg alias (created if absent)
- ~/.bashrc sources ~/.bash_aliases (appended if absent)
Runs before the already-installed skip so existing machines get it
too. Idempotent both ways (harness-proven: single alias line, single
source line after two runs; verified working in an interactive shell:
'type cfg' resolves and 'cfg status' runs).

~/.bash_aliases is the right file to TRACK in fedora-dots next: it
will then sync further aliases across machines.
yuri merged commit 49ea36e089 into main 2026-10-27 20:20:08 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: yuri/fedora#9