Skip to content

Commit 33e6539

Browse files
committed
updated with an install script
1 parent 4470c07 commit 33e6539

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

README.md

+10-5
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,19 @@ Normalizes Unicode to ASCII equivalents
44

55
## Installation
66

7-
I would recommend setting up a virtual environment so when you install the requirements it doesn't mess with your system python.
7+
Clone the repository somewhere on your system. You will need to pop up a terminal window to do this.
8+
9+
Then copy and paste the following commands into the command window.
810

911
```bash
1012
git clone https://github.com/unixwzrd/UnicodeFix.git
1113
cd UnicodeFix
12-
python -m venv venv
13-
source venv/bin/activate
14-
pip install -r requirements.txt
15-
chmod +x bin/cleanup-text.py
14+
bash setup.sh
1615
```
1716

17+
Setup will create a virtual environment to keep your system python clean.
18+
It will add the items needed to startup the script into your .bashrc
19+
1820
## Usage
1921

2022
```bash
@@ -34,6 +36,9 @@ options:
3436
python bin/cleanup-text.py <input_file>
3537
```
3638

39+
## Coming SOon
40+
- macSO Shortcut
41+
3742
## License
3843
Copyright 2025 [email protected]
3944

setup.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
$!/bin/bash
2+
3+
python -m venv venv
4+
source venv/bin/activate
5+
pip install -r requirements.txt
6+
chmod +x bin/cleanup-text.py
7+
8+
# Add the script to your PATH
9+
if [[ ! "$PATH" =~ "$PWD/bin" ]]; then
10+
echo "adding necessary items for Python script to run"
11+
echo "source $PWD/venv/bin/activate" >> ~/.bashrc
12+
echo "export PATH=\"$PWD/bin:\$PATH\"" >> ~/.bashrc
13+
fi

0 commit comments

Comments
 (0)