“And Yahweh was with Joshua.” This was literally true, but also supports the type-antitype in the Bible between Joshua and Jesus. Joshua 6:27 says Yahweh was with Joshua, and in Acts 10:38 God was with Jesus.
“fame.” The text reads “his name,” representative of his fame. Similarly, the fame of Jesus spread as well (cp. Matt. 4:24; Mark 1:28).