Created
August 25, 2025 23:15
-
-
Save mibmo/35c30f51c39889b0850da2bdf084de67 to your computer and use it in GitHub Desktop.
Get cwd in latest snapshot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function pwdSnapshot() { | |
echo "/persist/.zfs/snapshot/$(zfs list -t snapshot -o creation,name -pH data/persist | sort --stable --reverse --key=1,1 | cut -d'@' -f2- | head -1)/$PWD" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment