This question already has an answer here:

Is it possible to make executable appear in the global search path when I am entering to the some specific directory and get it removed once directory changed again?

marked as duplicate by Gilles bash May 5 at 20:21

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • It is unclear what you are asking (due to poor grammar: I can to parse your sentence). – ctrl-alt-delor May 5 at 17:21
  • Are you asking “How do I make it so that the current-working-directory is in the executable search PATH?” If so then don't do it. It will cause you pain (this used to be the default (it still is on Microsoft's windows), but it leads to errors, and security vulnerabilities. – ctrl-alt-delor May 5 at 17:24