1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-14 06:38:32 +00:00

Update README.md

This commit is contained in:
Bhavishya Pandit 2021-03-11 20:49:54 +05:30 committed by GitHub
parent c2cc95db88
commit 09a102955f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,6 +97,8 @@ Reading package lists... Done
- pip
- python-dev
##### [Scroll to top](https://github.com/bhav09/thefuck#the-fuck----)
## Installation
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
fuck -r
```
##### [Scroll to top](https://github.com/bhav09/thefuck#the-fuck----)
## Updating
@ -313,6 +316,8 @@ following rules are enabled by default:
* `yarn_command_replaced` – fixes replaced `yarn` commands;
* `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:
* `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`);
* `rm_root` – adds `--no-preserve-root` to `rm -rf /` command.
##### [Scroll to top](https://github.com/bhav09/thefuck#the-fuck----)
## Creating your own rules
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),
[app/os-specific helpers](https://github.com/nvbn/thefuck/tree/master/thefuck/specific/).
##### [Scroll to top](https://github.com/bhav09/thefuck#the-fuck----)
## Settings
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'
```
##### [Scroll to top](https://github.com/bhav09/thefuck#the-fuck----)
## Third-party packages with rules
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.
##### [Scroll to top](https://github.com/bhav09/thefuck#the-fuck----)
## Experimental instant mode
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)
```
##### [Scroll to top](https://github.com/bhav09/thefuck#the-fuck----)
## Developing
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
[homebrew]: https://brew.sh/
[linuxbrew]: https://linuxbrew.sh/
##### [Scroll to top](https://github.com/bhav09/thefuck#the-fuck----)