funcs: show return code in prompt