Merge b8fc960d40 into 62e0767c50
This commit is contained in:
commit
388cfc96ef
|
|
@ -210,6 +210,7 @@ following rules are enabled by default:
|
|||
* `cd_cs` – changes `cs` to `cd`;
|
||||
* `cd_mkdir` – creates directories before cd'ing into them;
|
||||
* `cd_parent` – changes `cd..` to `cd ..`;
|
||||
* `cd_quotes` – adds quotes around directories with spaces in filenames when cd'ing into them;
|
||||
* `chmod_x` – add execution bit;
|
||||
* `choco_install` – append common suffixes for chocolatey packages;
|
||||
* `composer_not_command` – fixes composer command name;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
def match(command):
|
||||
return command.script_parts[0] == "cd" and command.script.count(" ") > 1 and (not("\"" in command.script))
|
||||
|
||||
|
||||
def get_new_command(command):
|
||||
return 'cd \"{}\"'.format(' '.join(command.script_parts[1:]))
|
||||
|
||||
enabled_by_default = True
|
||||
priority = 900
|
||||
requires_output = False
|
||||
Loading…
Reference in New Issue