From a980216fb56a2c6a6ec1458bac66095d98216a1d Mon Sep 17 00:00:00 2001 From: karl Date: Thu, 17 Dec 2020 20:01:32 +0100 Subject: [PATCH] Add simple installation script --- README.md | 6 ++++++ install.sh | 1 + 2 files changed, 7 insertions(+) create mode 100755 install.sh diff --git a/README.md b/README.md index 7c7835c..a0837f8 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,12 @@ Simple plain-text time tracking. The Python script `tx` provides short-hands for accessing and reading a `time.txt` file, as described below. +## Installation + +For testing, you can just run `tx` in this directory using `./tx`. + +If you want to be able to use it anywhere, run `install.sh`. The `tx` command should then be available in any folder. + ## Usage Create a new `time.txt` file at the current location: `tx create` diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..0bb935b --- /dev/null +++ b/install.sh @@ -0,0 +1 @@ +sudo ln -s $(pwd)/tx /usr/local/bin/tx