1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-21 20:38:54 +00:00

Merge branch 'master' into 682-instant-fuck-mode

This commit is contained in:
Vladimir Iakovlev 2017-08-26 13:25:59 +02:00
commit 3d98aad5df
2 changed files with 11 additions and 2 deletions

View File

@ -130,10 +130,16 @@ eval $(thefuck --alias FUCK)
Changes will be available only in a new shell session.
To make them available immediately, run `source ~/.bashrc` (or your shell config file like `.zshrc`).
If you want separate alias for running fixed command without confirmation you can use alias like:
If you want to run fixed command without confirmation you can use `-y` option:
```bash
alias fuck-it='export THEFUCK_REQUIRE_CONFIRMATION=False; fuck; export THEFUCK_REQUIRE_CONFIRMATION=True'
fuck -y
```
If you want to fix commands recursively until success you can use `-r` option:
```bash
fuck -r
```
## Update

View File

@ -16,3 +16,6 @@ def match(command):
def get_new_command(command):
executable = _get_executable(command.script_parts[0])
return command.script.replace(executable, u'{} '.format(executable), 1)
priority = 4000