diff --git a/data/openvt.json b/data/openvt.json new file mode 100644 index 0000000..d9cf843 --- /dev/null +++ b/data/openvt.json @@ -0,0 +1,10 @@ +{ + "functions": { + "sudo": [ + { + "description": "The command execution is blind (displayed on the virtual console), but it is possible to save the output on a temporary file.", + "code": "TF=$(mktemp -u)\nsudo openvt -- sh -c \"[command] >$TF 2>&1\"\ncat $TF\n" + } + ] + } +}