Alias to mount root history

This commit is contained in:
2026-07-03 20:35:05 +01:00
parent f8145fd3c9
commit f3fad0a963
+6
View File
@@ -126,6 +126,12 @@ function dut() {
sudo du -hax -t"${threshold}G" /* --exclude=/{proc,sys,dev,run} sudo du -hax -t"${threshold}G" /* --exclude=/{proc,sys,dev,run}
} }
function mount_old_roots() {
sudo mkdir -p /mnt/btrfs-root
sudo mount -t btrfs -o subvolid=5 /dev/nvme0n1p2 /mnt/btrfs-root
cd /mnt/btrfs-root/old_roots
}
function gh() { function gh() {
local -a commands=( local -a commands=(
"Recover deleted file: git checkout HEAD -- <file>" "Recover deleted file: git checkout HEAD -- <file>"