dotfiles/.config/pet/snippet.toml

13 lines
335 B
TOML

[[Snippets]]
Description = "print the classic message"
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\""