#154 Add priority to rules

This commit is contained in:
nvbn
2015-05-06 13:57:09 +02:00
parent 5864faadef
commit fc3fcf028a
6 changed files with 56 additions and 26 deletions
+2
View File
@@ -199,6 +199,8 @@ enabled_by_default = True
def side_effect(command, settings):
subprocess.call('chmod 777 .', shell=True)
priority = 1000 # Lower first
```
[More examples of rules](https://github.com/nvbn/thefuck/tree/master/thefuck/rules),