Workflow for Alfred 2 to abbreviate some texts (snippets) and save some terminal commands.
ts [shortcut name] (for Snippet list)
tc [shortcut name] (for Command list)
Adding new shortcut (or terminal commands):
First, cmd+c (copy) text (or command) you want to use
ts add [shortcut name] (or "tc", for commands)
After that, you can type:
ts [shortcut name] (or "tc", for commands)
If you have used "ts", the snippet will be pasted.
If you have used "tc", the command will be executed.
If the command should run using Administrative Privilegies, you should put the word "sudo" before the command you would like to execute.
That is all!
Removing shortcut (or terminal commands):
ts del [shortcut name] (or "tc", for commands)
If dont remember the shortcut name, just type: ts del and all shortcuts will be displayed.
See some examples:
"Best regards, Jon Doe"
ts add me
When you are writing an email, type:
TS will paste: "Best regards, Jon Doe"