improve if on bash
add function information for bash
add useful commands