modified version of https://github.com/lukesmithxyz/voidrice added.
this is already detached from the current terminal, so just append a '&'
(like this: 'samedir &') and it opens a new terminal in the same dir.
you can then close the terminal that called samedir