diff --git a/README.md b/README.md index 5cf20971..8f7b2543 100644 --- a/README.md +++ b/README.md @@ -185,12 +185,30 @@ The Fuck has a few settings parameters, they can be changed in `~/.thefuck/setti * `wait_command` – max amount of time in seconds for getting previous command output; * `no_colors` – disable colored output. +Example of `settings.py`: + +```python +rules = ['sudo', 'no_command'] +require_confirmation = True +wait_command = 10 +no_colors = False +``` + Or via environment variables: * `THEFUCK_RULES` – list of enabled rules, like `DEFAULT_RULES:rm_root` or `sudo:no_command`; * `THEFUCK_REQUIRE_CONFIRMATION` – require confirmation before running new command, `true/false`; * `THEFUCK_WAIT_COMMAND` – max amount of time in seconds for getting previous command output; * `THEFUCK_NO_COLORS` – disable colored output, `true/false`. + +For example: + +```bash +export THEFUCK_RULES='sudo:no_command' +export THEFUCK_REQUIRE_CONFIRMATION='true' +export THEFUCK_WAIT_COMMAND=10 +export THEFUCK_NO_COLORS='false' +``` ## Developing