I went looking for the source of the original extract function.
The oldest version that I managed to find was from:
-
2010-012-24: https://github.com/ohmyzsh/ohmyzsh/blob/ff0b25b745494d96ae06694321b2299991620b14/lib/functions.zsh#L41-L60
-
2013-010-17: https://gist.github.com/pcbulai/7024143#file-bashrc
-
2016-003-01: https://github.com/dotgc/dotfiles/blob/4883740121c3cd619d63609b295e839d49815ac4/.bashrc.d/functions.bash#L1-L23
Which is currently located at: