mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-20 01:28:56 +00:00
Update README.md
This commit is contained in:
parent
c2cc95db88
commit
09a102955f
17
README.md
17
README.md
@ -97,6 +97,8 @@ Reading package lists... Done
|
|||||||
- pip
|
- pip
|
||||||
- python-dev
|
- python-dev
|
||||||
|
|
||||||
|
##### [Scroll to top](https://github.com/bhav09/thefuck#the-fuck----)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
On OS X, you can install *The Fuck* via [Homebrew][homebrew] (or via [Linuxbrew][linuxbrew] on Linux):
|
On OS X, you can install *The Fuck* via [Homebrew][homebrew] (or via [Linuxbrew][linuxbrew] on Linux):
|
||||||
@ -156,6 +158,7 @@ To fix commands recursively until succeeding, use the `-r` option:
|
|||||||
```bash
|
```bash
|
||||||
fuck -r
|
fuck -r
|
||||||
```
|
```
|
||||||
|
##### [Scroll to top](https://github.com/bhav09/thefuck#the-fuck----)
|
||||||
|
|
||||||
## Updating
|
## Updating
|
||||||
|
|
||||||
@ -313,6 +316,8 @@ following rules are enabled by default:
|
|||||||
* `yarn_command_replaced` – fixes replaced `yarn` commands;
|
* `yarn_command_replaced` – fixes replaced `yarn` commands;
|
||||||
* `yarn_help` – makes it easier to open `yarn` documentation;
|
* `yarn_help` – makes it easier to open `yarn` documentation;
|
||||||
|
|
||||||
|
##### [Scroll to top](https://github.com/bhav09/thefuck#the-fuck----)
|
||||||
|
|
||||||
The following rules are enabled by default on specific platforms only:
|
The following rules are enabled by default on specific platforms only:
|
||||||
|
|
||||||
* `apt_get` – installs app from apt if it not installed (requires `python-commandnotfound` / `python3-commandnotfound`);
|
* `apt_get` – installs app from apt if it not installed (requires `python-commandnotfound` / `python3-commandnotfound`);
|
||||||
@ -340,6 +345,8 @@ default:
|
|||||||
* `git_push_force` – adds `--force-with-lease` to a `git push` (may conflict with `git_push_pull`);
|
* `git_push_force` – adds `--force-with-lease` to a `git push` (may conflict with `git_push_pull`);
|
||||||
* `rm_root` – adds `--no-preserve-root` to `rm -rf /` command.
|
* `rm_root` – adds `--no-preserve-root` to `rm -rf /` command.
|
||||||
|
|
||||||
|
##### [Scroll to top](https://github.com/bhav09/thefuck#the-fuck----)
|
||||||
|
|
||||||
## Creating your own rules
|
## Creating your own rules
|
||||||
|
|
||||||
To add your own rule, create a file named `your-rule-name.py`
|
To add your own rule, create a file named `your-rule-name.py`
|
||||||
@ -393,6 +400,8 @@ requires_output = True
|
|||||||
[utility functions for rules](https://github.com/nvbn/thefuck/tree/master/thefuck/utils.py),
|
[utility functions for rules](https://github.com/nvbn/thefuck/tree/master/thefuck/utils.py),
|
||||||
[app/os-specific helpers](https://github.com/nvbn/thefuck/tree/master/thefuck/specific/).
|
[app/os-specific helpers](https://github.com/nvbn/thefuck/tree/master/thefuck/specific/).
|
||||||
|
|
||||||
|
##### [Scroll to top](https://github.com/bhav09/thefuck#the-fuck----)
|
||||||
|
|
||||||
## Settings
|
## Settings
|
||||||
|
|
||||||
Several *The Fuck* parameters can be changed in the file `$XDG_CONFIG_HOME/thefuck/settings.py`
|
Several *The Fuck* parameters can be changed in the file `$XDG_CONFIG_HOME/thefuck/settings.py`
|
||||||
@ -456,6 +465,8 @@ export THEFUCK_HISTORY_LIMIT='2000'
|
|||||||
export THEFUCK_NUM_CLOSE_MATCHES='5'
|
export THEFUCK_NUM_CLOSE_MATCHES='5'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
##### [Scroll to top](https://github.com/bhav09/thefuck#the-fuck----)
|
||||||
|
|
||||||
## Third-party packages with rules
|
## Third-party packages with rules
|
||||||
|
|
||||||
If you'd like to make a specific set of non-public rules, but would still like
|
If you'd like to make a specific set of non-public rules, but would still like
|
||||||
@ -475,6 +486,8 @@ thefuck_contrib_foo
|
|||||||
|
|
||||||
*The Fuck* will find rules located in the `rules` module.
|
*The Fuck* will find rules located in the `rules` module.
|
||||||
|
|
||||||
|
##### [Scroll to top](https://github.com/bhav09/thefuck#the-fuck----)
|
||||||
|
|
||||||
## Experimental instant mode
|
## Experimental instant mode
|
||||||
|
|
||||||
The default behavior of *The Fuck* requires time to re-run previous commands.
|
The default behavior of *The Fuck* requires time to re-run previous commands.
|
||||||
@ -494,6 +507,8 @@ For example:
|
|||||||
eval $(thefuck --alias --enable-experimental-instant-mode)
|
eval $(thefuck --alias --enable-experimental-instant-mode)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
##### [Scroll to top](https://github.com/bhav09/thefuck#the-fuck----)
|
||||||
|
|
||||||
## Developing
|
## Developing
|
||||||
|
|
||||||
See [CONTRIBUTING.md](CONTRIBUTING.md)
|
See [CONTRIBUTING.md](CONTRIBUTING.md)
|
||||||
@ -513,3 +528,5 @@ Project License can be found [here](LICENSE.md).
|
|||||||
[instant-mode-gif-link]: https://raw.githubusercontent.com/nvbn/thefuck/master/example_instant_mode.gif
|
[instant-mode-gif-link]: https://raw.githubusercontent.com/nvbn/thefuck/master/example_instant_mode.gif
|
||||||
[homebrew]: https://brew.sh/
|
[homebrew]: https://brew.sh/
|
||||||
[linuxbrew]: https://linuxbrew.sh/
|
[linuxbrew]: https://linuxbrew.sh/
|
||||||
|
|
||||||
|
##### [Scroll to top](https://github.com/bhav09/thefuck#the-fuck----)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user