rearrange folder structure
This commit is contained in:
parent
997d1ee4de
commit
e0488cf830
19 changed files with 5 additions and 9 deletions
7
xontrib/ps1.xsh
Normal file
7
xontrib/ps1.xsh
Normal file
|
@ -0,0 +1,7 @@
|
|||
from xonsh.built_ins import XSH
|
||||
|
||||
@XSH.builtins.events.on_transform_command
|
||||
def ps1_preproc(cmd, **kw):
|
||||
if cmd.split(" ")[0].strip().endswith(".ps1"):
|
||||
cmd = f"powershell.exe {cmd}"
|
||||
return cmd
|
Loading…
Add table
Add a link
Reference in a new issue