GitHub

I want to use a remote file


If you mainly work on one machine, keeping everything local might make sense.

If you switch between machines, servers, work and home laptops you might have your common alias and function files stored on a FTP server or on GitHub. Your organisation might also have a central repository for commonly used scripts.

Bee can use the remote address to register those files.

For example, registering a file stored on GitHub is a simple as:

bee --register https://raw.githubusercontent.com/devgabrielcoman/scriptexchange-aliasengine/main/examples/examples.sh

Similar with other remote resources. You just need to pass in a valid, accessible URL.

Notes on Github

  • You need to register files through the "raw" GitHub api
  • You can register files in public repos or gists
  • You can also register files in private repos, as long as you provide a GitHub token