···1212* Integrated Testing: Prompts to run nginx -t and reload the service after every edit or toggle.
1313* Config Preview: Uses batcat (with syntax highlighting) if installed, otherwise falls back to cat.
14141515-## Prerequisites
1616-1717-To use this utility ensure that your main Nginx config (e.g., `/etc/nginx/nginx.conf`) attempts to load in configurations
1818-at `/etc/nginx/sites-enabled/*` (or wherever you'd like to store your configurations).
1919-2020-For example, your `/etc/nginx/nginx.conf` should contain the following:
2121-```conf
2222-# ...
2323-2424-http {
2525- # ...
2626- include /etc/nginx/sites-enabled/*;
2727-}
2828-```
2929-3015## Installation
31163217To install nx system-wide while keeping the source code in this repository for easy updates:
···4732 ```bash
4833 sudo ln -s $(pwd)/nx /usr/local/bin/nx
4934 ```
3535+3636+4. Ensure that your main Nginx config (e.g., `/etc/nginx/nginx.conf`) attempts to load in configurations
3737+at `/etc/nginx/sites-enabled/*` (or wherever you'd like to store your configurations).
3838+3939+For example, your `/etc/nginx/nginx.conf` should contain the following:
4040+```conf
4141+# ...
4242+4343+http {
4444+ # ...
4545+ include /etc/nginx/sites-enabled/*;
4646+}
4747+```
50485149## Usage
5250