Skip to content

Commit 1a9ee6f

Browse files
authored
Merge pull request #85 from isaka-james/main
docs: Improve Android (Termux) installation instructions in README
2 parents 7f69b77 + 72c4eb4 commit 1a9ee6f

File tree

1 file changed

+38
-16
lines changed

1 file changed

+38
-16
lines changed

README.md

+38-16
Original file line numberDiff line numberDiff line change
@@ -72,29 +72,51 @@ nuru -v
7272
```
7373

7474

75+
76+
7577
### Android (Termux)
7678

77-
- Make sure you have [Termux](https://f-droid.org/repo/com.termux_118.apk) installed.
78-
- Download the binary with this command:
79+
To install Nuru on your Android device using Termux, follow these steps:
7980

80-
```
81-
curl -O -L https://github.com/AvicennaJr/Nuru/releases/download/v0.5.16/nuru_Android_arm64.tar.gz
82-
```
83-
- Extract the file:
81+
1. **Ensure Termux is installed**:
82+
- You can download and install [Termux](https://f-droid.org/en/packages/com.termux/).
8483

85-
```
86-
tar -xzvf nuru_Android_arm64.tar.gz
87-
```
88-
- Add it to path:
84+
2. **Create the target directory**:
85+
```bash
86+
mkdir -p /data/data/com.termux/files/usr/share/nuru
87+
```
8988

90-
```
91-
echo "alias nuru='~/nuru'" >> .bashrc
92-
```
93-
- Confirm installation with:
89+
3. **Download the Nuru package**:
90+
```bash
91+
curl -O -L https://github.com/NuruProgramming/Nuru/releases/download/v0.5.16/nuru_Android_arm64.tar.gz
92+
```
9493

94+
4. **Extract the files to the target directory**:
95+
```bash
96+
tar -xzvf nuru_Android_arm64.tar.gz -C /data/data/com.termux/files/usr/share/nuru
97+
```
98+
99+
5. **Set up an alias for easy access**:
100+
```bash
101+
echo "alias nuru='/data/data/com.termux/files/usr/share/nuru/nuru'" >> ~/.bashrc
102+
```
103+
104+
6. **Reload the .bashrc file to apply the alias**:
105+
```bash
106+
source ~/.bashrc
107+
```
108+
109+
7. **Verify the installation**:
110+
```bash
111+
nuru -v
112+
```
113+
114+
For a more streamlined installation, you can use the following one-liner:
115+
116+
```bash
117+
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.."
95118
```
96-
nuru -v
97-
```
119+
98120

99121
### Windows
100122

0 commit comments

Comments
 (0)