~kmaasrud/shatgpt

2ec685c06d35edd4dab8138cb79161862225f965 — Knut Magnus Aasrud 1 year, 6 months ago 710ba21
update Makefile and README
2 files changed, 9 insertions(+), 15 deletions(-)

M Makefile
M README
M Makefile => Makefile +1 -1
@@ 1,4 1,4 @@
SCRIPT = wsh
SCRIPT = shatgpt
PREFIX ?= /usr/local
DESTDIR ?=
DIR = $(DESTDIR)$(PREFIX)/bin

M README => README +8 -14
@@ 1,17 1,17 @@
wsh - wikipedia shell
shatgpt - ChatGPT in the shell


DESCRIPTION:

wsh is a simple shell script that fetches the summary of a wikipedia page. it
is written in POSIX sh and only depends on curl or wget.
shatgpt is a simple shell script client for the ChatGPT chatbot. it is written
in pure POSIX shell and only depends on curl.


INSTALLING:

1. clone this git repo

2. make sure you have curl or wget installed on your system.
2. make sure you have curl installed on your system.

3. run the following command to install the script:



@@ 20,20 20,14 @@ INSTALLING:
   this will install the script to the default location: /usr/local/bin. use the
   'PREFIX' and 'DESTDIR' variables to customize the installation path.

   note that administrative privileges may be required for the installation,
   depending on the chosen installation directory.


UNINSTALLING:

1. open a terminal and navigate to the directory where the script is located.
1. open a terminal and navigate to the cloned git repo.

2. run the following command to uninstall the script:

     $ make uninstall


NOTES:

- administrative privileges may be required for the installation, depending on
  the chosen installation directory.

- ensure that the necessary dependencies (curl or wget) are available on your
  system for fetching data from the wikipedia api.