mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 20:11:17 +00:00
Add fuck --hard as alternative to fuck --yeah (#963)
* Add fuck --hard as alternative to fuck --yeah * Fix missing comma in thefuck/argument_parser.py Co-Authored-By: lomckee <cstutoringluke@gmail.com> * Update README on fuck --hard
This commit is contained in:
parent
64dd018c1a
commit
6789701e23
@ -145,7 +145,7 @@ 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 `--yeah` option (or just `-y` for short):
|
To run fixed commands without confirmation, use the `--yeah` option (or just `-y` for short, or `--hard` if you're especially frustrated):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
fuck --yeah
|
fuck --yeah
|
||||||
|
@ -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', '--yeah',
|
'-y', '--yes', '--yeah', '--hard',
|
||||||
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