The script zdl-xterm
: XXXTerm/Xombrero and other software ¶
ZDL can be started from XXXTerm/Xombrero and from other software through
the /usr/local/bin/zdl-xterm script, which
it can be started from any application and from a terminal.
It was thought to make it possible to start ZDL in different contexts
from those provided by the program. In particular, XXXTerm can start
a bash script, using the command :run_script
,
passing it a single argument: the link of the current page. This
makes it impossible to start standard zdl in an instance of xterm,
because :run_script
does not accept further parameters. The start
of zdl in a new virtual terminal xterm is made possible, precisely,
from zdl-xterm
.
Use in XXXTerm: ¶
- command
:run_script
- type:
zdl-xterm
- the program starts an instance of xterm which:
- asks in which directory to download the file
(You can avoid this interaction by configuring zdl-xterm:
enter in /usr/local/bin/zdl-xterm, as a value
of the variable
default_directory
at the beginning of the script, the path to a valid directory) - zdl-xterm starts zdl on the current URL
- asks in which directory to download the file
(You can avoid this interaction by configuring zdl-xterm:
enter in /usr/local/bin/zdl-xterm, as a value
of the variable
Simplification for XXXTerm. ¶
To use zdl-xterm more quickly, XXXTerm can be configured in many ways.
A tip:
- open the file $HOME/.xxxterm.conf
- enter the following text:
default_script = zdl-xterm keybinding = run_script,C-z
With the suggested configuration, typing Ctrl-z starts
the prompt :run_script
with the field already occupied by the name
of the script zdl-xterm
: just press enter.