mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 12:06:04 +00:00
Update list of rules in readme
This commit is contained in:
parent
e822fade4c
commit
dd01303663
@ -149,11 +149,16 @@ The Fuck tries to match rule for the previous command, create new command
|
||||
using matched rule and run it. Rules enabled by default:
|
||||
|
||||
* `cd_parent` – changes `cd..` to `cd ..`;
|
||||
* `cp_omitting_directory` – adds `-a` when you `cp` directory;
|
||||
* `git_no_command` – fixes wrong git commands like `git brnch`;
|
||||
* `git_push` – adds `--set-upstream origin $branch` to previous failed `git push`;
|
||||
* `has_exists_script` – prepends `./` when script/binary exists;
|
||||
* `lein_not_task` – fixes wrong `lein` tasks like `lein rpl`;
|
||||
* `mkdir_p` – adds `-p` when you trying to create directory without parent;
|
||||
* `no_command` – fixes wrong console commands, for example `vom/vim`;
|
||||
* `sudo` – prepends `sudo` to previous command if it failed because of permissions;
|
||||
* `lein_not_task` – fixes wrong `lein` tasks like `lein rpl`.
|
||||
* `python_command` – prepends `python` when you trying to run not executable/without `./` python script;
|
||||
* `rm_dir` – adds `-rf` when you trying to remove directory;
|
||||
* `sudo` – prepends `sudo` to previous command if it failed because of permissions.
|
||||
|
||||
## Creating your own rules
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user