-1

After installing Gitea from binary, I can only run the Gitea commands from the gitea home dir with eg. ./gitea -v

How do I set a Path so that Terminal responds to Gitea commands? The server is up and running and have created accounts etc.

Does a Path need to be added somehow to the .bashrc file?

The answer should enable "gitea" to be typed in Terminal as a command anywhere not just in the home Gitea folder.

Kate Orlova
  • 3,225
  • 5
  • 11
  • 35
dwierdo
  • 1
  • 4

1 Answers1

0

Have you tried to use export in your .bashrc?

export PATH=$PATH:/my/path/to/gitea

By adding $PATH in the export, it appends the path gitea path rather than overwriting the PATH environment variable.

Fred
  • 1,054
  • 1
  • 12
  • 32