Skip to content

Commit 23e6391

Browse files
authored
Update README.md
1 parent 0e49127 commit 23e6391

File tree

1 file changed

+48
-1
lines changed

1 file changed

+48
-1
lines changed

README.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,48 @@
1-
# ctf-script
1+
# CTF Script
2+
3+
## Usage
4+
5+
Setup a `CTF_ROOT_DIR` environment variable to make the script execute in the right folder or execute the script from that folder.
6+
7+
## Installation
8+
9+
Install with [uv](https://docs.astral.sh/uv/guides/tools/):
10+
11+
```bash
12+
uv tool install git+https://github.com/nsec/ctf-script.git
13+
```
14+
15+
Install with pipx:
16+
17+
```bash
18+
pipx install git+https://github.com/nsec/ctf-script.git
19+
```
20+
21+
### Add Bash/Zsh autocompletion to .bashrc
22+
23+
```bash
24+
echo 'eval "$(register-python-argcomplete ctf)"' >> ~/.bashrc && source ~/.bashrc # If using bash
25+
echo 'eval "$(register-python-argcomplete ctf)"' >> ~/.zshrc && source ~/.zshrc # If using zsh
26+
```
27+
28+
## Development
29+
30+
Install with [uv](https://docs.astral.sh/uv/guides/tools/) virtual environment:
31+
32+
```bash
33+
git clone https://github.com/nsec/ctf-script.git
34+
cd ctf-script
35+
uv venv venv
36+
source venv/bin/activate
37+
uv pip install -e .
38+
```
39+
40+
Install with virtual environment and pip:
41+
42+
```bash
43+
git clone https://github.com/nsec/ctf-script.git
44+
cd ctf-script
45+
python3 -m venv venv
46+
source venv/bin/activate
47+
pip install -e .
48+
```

0 commit comments

Comments
 (0)