Skip to main content
4 of 4
missing quotes
Stéphane Chazelas
  • 584.6k
  • 96
  • 1.1k
  • 1.7k

You need to add directory with your script to the PATH variable:

export PATH="$PATH:/path/to/dir"

or you can even add current directory to the PATH:

export PATH="$PATH:."

The later has some security drawback though.

jimmij
  • 48.7k
  • 20
  • 136
  • 141