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: https://github.com/dotgc/dotfiles/blob/adef9b6106635b0b06fad2df760a41e563afc289/.lib/functions.bash#L1-L23
After also finding another repository and a gist from that same GitHub user,
I remain unaware of what unrar2dir and unzip2dir actually were.
If anyone knows anything about unrar2dir or unzip2dir, that would be useful information to add.