diff --git a/.config/pet/snippet.toml b/.config/pet/snippet.toml index 7ee0e28b..f511cadc 100644 --- a/.config/pet/snippet.toml +++ b/.config/pet/snippet.toml @@ -4,3 +4,10 @@ Output = "" Tag = [] command = "echo Hello world!" + +[[Snippets]] + Description = "Edit Python scratch file" + Output = "" + Tag = [] + command = "TEMP=$(mktemp)\nmv \"$TEMP\" \"$TEMP.py\"\necho '#!/bin/env python' > \"$TEMP.py\"\nchmod +x \"$TEMP.py\"\nhx \"$TEMP.py\"" +