AutoYADM commit: 2025-03-22 21:15:07
This commit is contained in:
parent
b243769d4c
commit
4bb936319c
2 changed files with 9 additions and 6 deletions
|
@ -1,13 +1,13 @@
|
|||
|
||||
[[Snippets]]
|
||||
Description = "print the classic message"
|
||||
Description = "mkpy: Edit Python scratch file"
|
||||
Output = ""
|
||||
Tag = []
|
||||
command = "echo Hello world!"
|
||||
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]]
|
||||
Description = "Edit Python scratch file"
|
||||
Description = "clearpy: Clear Python scratch files."
|
||||
Output = ""
|
||||
Tag = []
|
||||
command = "TEMP=$(mktemp)\nmv \"$TEMP\" \"$TEMP.py\"\necho '#!/bin/env python' > \"$TEMP.py\"\nchmod +x \"$TEMP.py\"\nhx \"$TEMP.py\""
|
||||
Tag = ["python", "scratch"]
|
||||
command = "rm -f /tmp/tmp.*.py"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue