Shell utilities for /etc/profile.d/. Each file is self-contained and sourced on login.
bash_history.sh: persistent history with dedup across sessions, immediate append on each command, timestamped entries, ignores duplicates and space-prefixed commandsdisk_utils.sh:hddtempdrop-in replacement usingsmartctl+jq, scans all drives in parallel, supports SATA (ATA attribute 194) and NVMe temperature sources
# disk temperature scan
hddtemp
# output: /dev/sda: Samsung SSD 870 EVO: 38°CHistory dedup runs on shell exit via trap; it rewrites $HISTFILE in-place, keeping only the last occurrence of each unique command.
sudo ln -s "$(pwd)/bash_history.sh" /etc/profile.d/
sudo ln -s "$(pwd)/disk_utils.sh" /etc/profile.d/disk_utils.sh:smartmontools,jq