Port bash functions to fish.