mirror of
https://github.com/nvbn/thefuck.git
synced 2025-04-19 09:10:47 +01:00
add man_no_space
This commit is contained in:
parent
65aeea857e
commit
045959ec47
@ -152,6 +152,7 @@ using matched rule and run it. Rules enabled by default:
|
|||||||
* `lein_not_task` – fixes wrong `lein` tasks like `lein rpl`;
|
* `lein_not_task` – fixes wrong `lein` tasks like `lein rpl`;
|
||||||
* `mkdir_p` – adds `-p` when you trying to create directory without parent;
|
* `mkdir_p` – adds `-p` when you trying to create directory without parent;
|
||||||
* `no_command` – fixes wrong console commands, for example `vom/vim`;
|
* `no_command` – fixes wrong console commands, for example `vom/vim`;
|
||||||
|
* `man_no_space` – fixes man commands without spaces, for example `mandiff`;
|
||||||
* `pacman` – installs app with `pacman` or `yaourt` if it is not installed;
|
* `pacman` – installs app with `pacman` or `yaourt` if it is not installed;
|
||||||
* `pip_unknown_command` – fixes wrong pip commands, for example `pip instatl/pip install`;
|
* `pip_unknown_command` – fixes wrong pip commands, for example `pip instatl/pip install`;
|
||||||
* `python_command` – prepends `python` when you trying to run not executable/without `./` python script;
|
* `python_command` – prepends `python` when you trying to run not executable/without `./` python script;
|
||||||
@ -193,13 +194,13 @@ def match(command, settings):
|
|||||||
|
|
||||||
def get_new_command(command, settings):
|
def get_new_command(command, settings):
|
||||||
return 'sudo {}'.format(command.script)
|
return 'sudo {}'.format(command.script)
|
||||||
|
|
||||||
# Optional:
|
# Optional:
|
||||||
enabled_by_default = True
|
enabled_by_default = True
|
||||||
|
|
||||||
def side_effect(command, settings):
|
def side_effect(command, settings):
|
||||||
subprocess.call('chmod 777 .', shell=True)
|
subprocess.call('chmod 777 .', shell=True)
|
||||||
|
|
||||||
priority = 1000 # Lower first
|
priority = 1000 # Lower first
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user