1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-04-14 23:00:45 +01:00

Merge pull request #41 from rstacruz/patch-2

Readme: document cd_parent
This commit is contained in:
Vladimir Iakovlev 2015-04-19 15:04:08 +02:00
commit 67666e4d01

View File

@ -99,11 +99,12 @@ Changes will available only in a new shell session.
The Fuck tries to match rule for the previous command, create new command The Fuck tries to match rule for the previous command, create new command
using matched rule and run it. Rules enabled by default: using matched rule and run it. Rules enabled by default:
* `cd_parent` – changes `cd..` to `cd ..`;
* `git_no_command` – fixes wrong git commands like `git brnch`; * `git_no_command` – fixes wrong git commands like `git brnch`;
* `git_push` – adds `--set-upstream origin $branch` to previous failed `git push`; * `git_push` – adds `--set-upstream origin $branch` to previous failed `git push`;
* `no_command` – fixes wrong console commands, for example `vom/vim`; * `no_command` – fixes wrong console commands, for example `vom/vim`;
* `sudo` – prepends `sudo` to previous command if it failed because of permissions; * `sudo` – prepends `sudo` to previous command if it failed because of permissions;
* `lein_not_task` – fixes wrong `lein` tasks like `lein rpl`. * `lein_not_task` – fixes wrong `lein` tasks like `lein rpl`.
## Creating your own rules ## Creating your own rules