AutoYADM commit: 2025-03-23 14:15:07
This commit is contained in:
parent
185be9fa64
commit
df7c3aaba1
3 changed files with 7 additions and 29 deletions
|
@ -3,6 +3,12 @@
|
|||
Description = "mkpy: Edit Python scratch file"
|
||||
Output = ""
|
||||
Tag = ["python", "scratch"]
|
||||
command = "FILE=\"$(date +%s%N)_$RANDOM.py\"\nprintf '#!/bin/env python\\n\\n' > \"$FILE\"\nchmod +x \"$FILE\"\nhx \"$FILE\""
|
||||
|
||||
[[Snippets]]
|
||||
Description = "mktemppy: Edit TEMP Python scratch file"
|
||||
Output = ""
|
||||
Tag = ["python", "scratch"]
|
||||
command = "TEMP=$(mktemp)\nmv \"$TEMP\" \"$TEMP.py\"\nprintf '#!/bin/env python\\n\\n' > \"$TEMP.py\"\nchmod +x \"$TEMP.py\"\nhx \"$TEMP.py\""
|
||||
|
||||
[[Snippets]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue