add def bash function for inline function definitions