mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-07 05:31:18 +00:00
added --yeah as an alterative arg to -y and --yes; updated README.md (#822)
This commit is contained in:
parent
59745942b5
commit
142ef6e66c
@ -146,10 +146,10 @@ eval $(thefuck --alias FUCK)
|
|||||||
Changes are only available in a new shell session. To make changes immediately
|
Changes are only available in a new shell session. To make changes immediately
|
||||||
available, run `source ~/.bashrc` (or your shell config file like `.zshrc`).
|
available, run `source ~/.bashrc` (or your shell config file like `.zshrc`).
|
||||||
|
|
||||||
To run fixed commands without confirmation, use the `-y` option:
|
To run fixed commands without confirmation, use the `--yeah` option (or just `-y` for short):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
fuck -y
|
fuck --yeah
|
||||||
```
|
```
|
||||||
|
|
||||||
To fix commands recursively until succeeding, use the `-r` option:
|
To fix commands recursively until succeeding, use the `-r` option:
|
||||||
|
@ -55,7 +55,7 @@ class Parser(object):
|
|||||||
"""It's too dangerous to use `-y` and `-r` together."""
|
"""It's too dangerous to use `-y` and `-r` together."""
|
||||||
group = self._parser.add_mutually_exclusive_group()
|
group = self._parser.add_mutually_exclusive_group()
|
||||||
group.add_argument(
|
group.add_argument(
|
||||||
'-y', '--yes',
|
'-y', '--yes', '--yeah',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help='execute fixed command without confirmation')
|
help='execute fixed command without confirmation')
|
||||||
group.add_argument(
|
group.add_argument(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user