1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-20 01:28:56 +00:00

Readme: document cd_parent

This commit is contained in:
Rico Sta. Cruz 2015-04-19 10:34:43 +08:00
parent 3f0cbb9326
commit 98f287dad5

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