port gitwd to bash