This does use thread-local global state to store the directory stack, but I'm uncertain how many scripts out there change directory in multiple different threads.
This PR is slightly for my own selfish needs, since I include a function like this in a lot of my scripts >:3
This does use thread-local global state to store the directory stack, but I'm uncertain how many scripts out there change directory in multiple different threads.
This PR is slightly for my own selfish needs, since I include a function like this in a lot of my scripts >:3