set path right and log to bash_history