From 19b1015568c96f2e231be7daccadc81912d3b11b Mon Sep 17 00:00:00 2001 From: Masterplan <76619967+isaka-james@users.noreply.github.com> Date: Wed, 5 Jun 2024 14:22:26 +0300 Subject: [PATCH 1/2] docs: Improve Android (Termux) installation instructions in README - Added step-by-step instructions for creating the target directory. - Included commands to download and extract the Nuru package. - Provided steps to set up an alias and reload .bashrc. - Added a one-liner command for streamlined installation. --- README.md | 54 ++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 38 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index fd83cc4..c0437fa 100644 --- a/README.md +++ b/README.md @@ -72,29 +72,51 @@ nuru -v ``` + + ### Android (Termux) - - Make sure you have [Termux](https://f-droid.org/repo/com.termux_118.apk) installed. - - Download the binary with this command: +To install Nuru on your Android device using Termux, follow these steps: -``` -curl -O -L https://github.com/AvicennaJr/Nuru/releases/download/v0.5.16/nuru_Android_arm64.tar.gz -``` - - Extract the file: +1. **Ensure Termux is installed**: + - You can download and install [Termux](https://f-droid.org/en/packages/com.termux/). -``` -tar -xzvf nuru_Android_arm64.tar.gz -``` - - Add it to path: +2. **Create the target directory**: + ```bash + mkdir -p /data/data/com.termux/files/usr/share/nuru + ``` -``` -echo "alias nuru='~/nuru'" >> .bashrc -``` - - Confirm installation with: +3. **Download the Nuru package**: + ```bash + curl -O -L https://github.com/AvicennaJr/Nuru/releases/download/v0.5.16/nuru_Android_arm64.tar.gz + ``` +4. **Extract the files to the target directory**: + ```bash + tar -xzvf nuru_Android_arm64.tar.gz -C /data/data/com.termux/files/usr/share/nuru + ``` + +5. **Set up an alias for easy access**: + ```bash + echo "alias nuru='/data/data/com.termux/files/usr/share/nuru/nuru'" >> ~/.bashrc + ``` + +6. **Reload the .bashrc file to apply the alias**: + ```bash + source ~/.bashrc + ``` + +7. **Verify the installation**: + ```bash + nuru -v + ``` + +For a more streamlined installation, you can use the following one-liner: + +```bash +curl -O -L https://github.com/AvicennaJr/Nuru/releases/download/v0.5.16/nuru_Android_arm64.tar.gz && mkdir -p /data/data/com.termux/files/usr/share/nuru && tar -xzvf nuru_Android_arm64.tar.gz -C /data/data/com.termux/files/usr/share/nuru && echo "alias nuru='/data/data/com.termux/files/usr/share/nuru/nuru'" >> ~/.bashrc && source ~/.bashrc && echo "Installation complete.." ``` -nuru -v -``` + ### Windows From 72c4eb4b94e0a2e80518a25bcd6e2494e0b2732a Mon Sep 17 00:00:00 2001 From: Lugano Abel Date: Wed, 5 Jun 2024 14:56:18 +0300 Subject: [PATCH 2/2] update termux installation guide --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c0437fa..a01a4af 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ To install Nuru on your Android device using Termux, follow these steps: 3. **Download the Nuru package**: ```bash - curl -O -L https://github.com/AvicennaJr/Nuru/releases/download/v0.5.16/nuru_Android_arm64.tar.gz + curl -O -L https://github.com/NuruProgramming/Nuru/releases/download/v0.5.16/nuru_Android_arm64.tar.gz ``` 4. **Extract the files to the target directory**: