I've just moved over to fish shell after years of Bash. I've ported all of my functions over pretty easily except for a very simple one I have called mkroot:
mkroot () {
sudo bash --rcfile ~/.bashrc;
}
I use it to open a root shell which is always up to date with my personal environment (so all my familiar shortcuts work).
Is there anyway to replicate this in fish without having to configure root's environment?
Thanks for any tips.