mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-22 04:48:57 +00:00
Merge branch 'suvjunmd-master'
Conflicts: README.md
This commit is contained in:
commit
aca04c2b07
@ -118,7 +118,7 @@ function fuck {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Changes will available only in a new shell session.
|
Changes will be available only in a new shell session.
|
||||||
|
|
||||||
|
|
||||||
## Update
|
## Update
|
||||||
@ -146,7 +146,7 @@ in `~/.thefuck/rules`. Rule should contain two functions:
|
|||||||
`match(command: Command, settings: Settings) -> bool`
|
`match(command: Command, settings: Settings) -> bool`
|
||||||
and `get_new_command(command: Command, settings: Settings) -> str`.
|
and `get_new_command(command: Command, settings: Settings) -> str`.
|
||||||
|
|
||||||
`Command` have three attributes: `script`, `stdout` and `stderr`.
|
`Command` has three attributes: `script`, `stdout` and `stderr`.
|
||||||
|
|
||||||
`Settings` is `~/.thefuck/settings.py`.
|
`Settings` is `~/.thefuck/settings.py`.
|
||||||
|
|
||||||
@ -167,7 +167,7 @@ def get_new_command(command, settings):
|
|||||||
|
|
||||||
## Settings
|
## Settings
|
||||||
|
|
||||||
The Fuck have a few settings parameters:
|
The Fuck has a few settings parameters:
|
||||||
|
|
||||||
* `rules` – list of enabled rules, by default all;
|
* `rules` – list of enabled rules, by default all;
|
||||||
* `wait_command` – max amount of time in seconds for getting previous command output;
|
* `wait_command` – max amount of time in seconds for getting previous command output;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user