Abscissa / scriptlike

Utility library to help you write script-like programs in D
Other
93 stars 10 forks source link

Add equivalents of Powershell's Push-Location and Pop-Location #39

Closed BradleyChatha closed 1 year ago

BradleyChatha commented 3 years ago

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