-
Notifications
You must be signed in to change notification settings - Fork 0
shell_directive
Dewayne VanHoozer edited this page Feb 19, 2024
·
1 revision
The //shell command
directive may be a very powerful directive from the point of view of adding text to the prompt. There are no limitations on what the command
can be. Anything that sends text to STDOUT will have that same content pre-pended to the prompt text.
Here is one example of how it can be used:
//shell cat path_to_file
This does basically the same kind of function as the //include
directive EXCEPT there is no filtering of file content. The include directive removes all comments and directives whereas the shell directive using the cat
command inserts the entire content of the file.
I'm expecting that one of the most useful things that the shell directive could be used for is inserting webpage content.
//shell curl [URL] | html2txt