The most useful shell trick I've used to date is mapping the 'cd' command to 'zoxide', which is a more powerful version of cd that remembers folders you've been to.
Yes, because you don't have to pop in order. "zoxide <subpath>" is "search the history of working directories for a path ending in <subpath> and cd to that".
disinterred · · focus · HN ↗
1718627440 · · focus · HN ↗
SAI_Peregrinus · · focus · HN ↗