Clean up bash/functions