You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.1 KiB
JSON
28 lines
1.1 KiB
JSON
{
|
|
"functions": {
|
|
"shell": [
|
|
{
|
|
"description": "This requires the name of an installed gem to be provided ('rdoc' is usually installed).",
|
|
"code": "gem open -e \"/bin/sh -c /bin/sh\" rdoc"
|
|
},
|
|
{
|
|
"description": "This invokes the default editor, which is likely to be 'vi', other functions may apply. This requires the name of an installed gem to be provided ('rdoc' is usually installed).",
|
|
"code": "gem open rdoc\n:!/bin/sh\n"
|
|
},
|
|
{
|
|
"description": "This executes the specified file as 'ruby' code.",
|
|
"code": "TF=$(mktemp -d)\necho 'system(\"/bin/sh\")' > $TF/x\ngem build $TF/x\n"
|
|
},
|
|
{
|
|
"description": "This executes the specified file as 'ruby' code.",
|
|
"code": "TF=$(mktemp -d)\necho 'system(\"/bin/sh\")' > $TF/x\ngem install --file $TF/x\n"
|
|
}
|
|
],
|
|
"sudo": [
|
|
{
|
|
"description": "This requires the name of an installed gem to be provided ('rdoc' is usually installed).",
|
|
"code": "sudo gem open -e \"/bin/sh -c /bin/sh\" rdoc"
|
|
}
|
|
]
|
|
}
|
|
} |