optimize eshell-prompt-function