Yahweh's Spirit is in Joshua, meaning that he obeys Yahweh and follows his commands. God told Moses to appoint Joshua as the new leader. He became Yahweh's anointed leader.
"lay your hand on him to appoint him"