/usr/share/GNUstep/Terminal.app/DefaultTerminalServices.svcs is in terminal.app 0.9.8-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | {
Description = "Default terminal services";
TerminalServices = {
"Arithmetic Calculation" = {
Commandline = "echo \"%s\" | bc";
Input = 2;
Key = "";
ReturnData = 1;
Type = 0;
};
"Define word" = {
AcceptTypes = 1;
Commandline = "dict \"%s\"";
Input = 2;
Key = "=";
ReturnData = 0;
Type = 2;
};
"Fetch URL" = {
AcceptTypes = 1;
Commandline = "cd ~; wget \"%s\"";
Input = 2;
Key = "";
ReturnData = 0;
Type = 2;
};
"Count lines" = {
Commandline = "wc -l";
Input = 1;
Key = "";
ReturnData = 1;
Type = 0;
};
"Count words" = {
Commandline = wc;
Input = 1;
Key = "";
ReturnData = 1;
Type = 0;
};
"Open shell here" = {
AcceptTypes = 3;
Commandline = "cd \"%s\" && exec $SHELL";
Input = 2;
Key = "";
ReturnData = 0;
Type = 1;
};
"Four-space hard tabs" = {
Commandline = "expand | unexpand -t4";
Input = 1;
Key = "";
ReturnData = 1;
Type = 0;
};
"Sort lines" = {
Commandline = sort;
Input = 1;
Key = "";
ReturnData = 1;
Type = 0;
};
Time = {
Commandline = date;
Input = 0;
Key = "";
ReturnData = 1;
Type = 0;
};
"Wrap and reply" = {
Commandline = "fmt -w 70 | sed -e \"s/^/> /\"";
Input = 1;
Key = "";
ReturnData = 1;
Type = 0;
};
"Wrap to 72 Columns" = {
Commandline = "fmt -w 72";
Input = 1;
Key = "";
ReturnData = 1;
Type = 0;
};
bunzip2 = {
AcceptTypes = 2;
Commandline = "bunzip2 %s";
Input = 2;
Key = "";
ReturnData = 0;
Type = 0;
};
bzip2 = {
AcceptTypes = 2;
Commandline = "bzip2 %s";
Input = 2;
Key = "";
ReturnData = 0;
Type = 0;
};
gunzip = {
AcceptTypes = 2;
Commandline = "gunzip %s";
Input = 2;
Key = "";
ReturnData = 0;
Type = 0;
};
gzip = {
AcceptTypes = 2;
Commandline = "gzip %s";
Input = 2;
Key = "";
ReturnData = 0;
Type = 0;
};
};
}
|