Inspired by https://ane.iki.fi/2022/06/21/beenthere-donethat.html
Original script for bash/zsh is here: https://git.sr.ht/~ane/btdt/tree
With fisher:
fisher install Dimentium/btdt.fish
Copy files from /functions dir to ~/.config/fish/functions
bt prompts for a command in your history and asks to save it with another name
dt then recalls a command from this named history