Misc functions and fish shell