1 <?xml version="1.0" encoding="UTF-8"?>
2 <?xml-stylesheet type="text/xsl" href="dactyl://content/help.xsl"?>
4 <!DOCTYPE document SYSTEM "dactyl://content/dtd">
8 title="&dactyl.appName; Starting"
10 xmlns:html="&xmlns.html;">
12 <h1 tag="starting">Starting &dactyl.appName;</h1>
15 <h2 tag="startup-options">Command-line options</h2>
18 Command-line options can be passed to &dactyl.appName; via the <em>-&dactyl.name;</em> &dactyl.host;
19 option. These are passed as single string argument.
20 E.g., <tt>&dactyl.hostbin; -&dactyl.name; <str><t>++cmd</t> 'set exrc' <t>+u</t> 'tempRcFile' <t>++noplugin</t></str></tt>
24 The <em>-&dactyl.name;-remote</em> command-line option can be used to
25 execute a single Ex command in an already running Pentadactyl instance.
31 <spec>+c <a>command</a></spec>
34 Execute a single Ex command after all initialization has been performed. See
35 <t>initialization</t>.
38 <p>This option can be specified multiple times.</p>
45 <spec>++cmd <a>command</a></spec>
48 Execute a single Ex command before any initialization has been performed. See
49 <t>initialization</t>.
52 <p>This option can be specified multiple times.</p>
59 <spec>+u <a>rcfile</a></spec>
62 The file <a>rcfile</a> is used for user initialization commands. If <a>rcfile</a> is
63 <str>NORC</str> then no startup initialization is performed except for the loading of
64 plugins, i.e., steps 1. and 2. in <t>initialization</t> are skipped. If <a>rcfile</a>
65 is <str>NONE</str> then plugin loading is also skipped.
71 <tags>++noplugin</tags>
73 <spec>++noplugin</spec>
75 <p>Prevents plugin scripts from being loaded at startup. See <o>loadplugins</o>.</p>
80 <tags>+purgecaches</tags>
82 <spec>+purgecaches</spec>
85 Purges &dactyl.appName; caches at startup. May occasionally be
86 necessary after making local changes to the source tree.
91 <h2 tag="initialization startup">Initialization</h2>
93 <p>At startup, &dactyl.appName; completes the following tasks in order. </p>
98 &dactyl.appName; first searches for user initialization commands in
99 the following locations. The first of these to be found is executed,
100 after which no further locations are searched.
104 <li tag="$&dactyl.idName;_INIT">
105 <em>$&dactyl.idName;_INIT</em>
107 May contain a single Ex command (e.g., "<ex>:source <a>file</a></ex>").
109 <li tag="$MY_&dactyl.idName;RC">
110 <em>~/_&dactyl.name;rc</em>
112 Windows only. If this file exists, its contents
113 are executed and <tt>$MY_&dactyl.idName;RC</tt> set to its path.
115 <li tag="&dactyl.name;rc ">
116 <em>~/.&dactyl.name;rc</em>
118 If this file exists, its contents are executed.
124 If <o>exrc</o> is set and the <t>+u</t> command-line option was not
125 specified, then any RC file in the current directory is also
131 All directories in <o>runtimepath</o> are searched for a
132 ‘plugins’ subdirectory and all yet unloaded plugins are loaded.
133 For each plugins directory, all <tt>*.{js,&dactyl.fileExt;}</tt>
134 files (including those in further subdirectories) are sourced
135 alphabetically. No plugins will be sourced if,
139 <li><o>loadplugins</o> is unset,</li>
140 <li>the <t>++noplugin</t> command-line option was specified, or</li>
141 <li>the <tt><t>+u</t>=NONE</tt> command-line option was specified.</li>
145 Any plugin which was already loaded (e.g., by an earlier
146 invocation of the <ex>:loadplugins</ex> command) will be skipped.
152 The user's home directory is determined as follows:
156 <li>On Unix and Mac, the environment variable <tt>$HOME</tt> is used.</li>
158 On Windows, &dactyl.appName; checks for the existence of
159 <tt>%HOME%</tt>, then <tt>%USERPROFILE%</tt>, and then
160 <tt>%HOMEDRIVE%%HOMEPATH%</tt>. It uses the first one it
165 <h2 tag="save-settings">Saving settings</h2>
168 <tags>:mkp :mk&dactyl.name;rc</tags>
169 <spec>:mkp<oa>entadactylrc</oa><oa>!</oa> <oa>file</oa></spec>
172 Write current key mappings and changed options to <oa>file</oa>. If no
173 <oa>file</oa> is specified then <em>~/.&dactyl.name;rc</em> is written unless this file
174 already exists. The special version <ex>:mk&dactyl.name;rc!</ex> will overwrite
175 <oa>file</oa> if it exists.
179 This behavior differs differs from that of Vim, which defaults to
180 writing the file in the current directory.
185 <h2 tag="restarting">Restarting</h2>
188 <tags>:reh :rehash</tags>
189 <spec>:reh<oa>ash</oa> <oa>arg</oa> …</spec>
192 Reload the &dactyl.appName; add-on, including all code, plugins,
193 and configuration. For users running directly from the development
194 repository, this is a good way to update to the latest version or
195 to test your changes.
199 Any arguments supplied are parsed as command-line arguments as
200 specified in <t>startup-options</t>.
204 Not all plugins are designed to cleanly un-apply during a rehash.
205 While official plugins are safe, beware of possible instability
206 if you rehash while running third-party plugins.
212 <tags>:res :restart</tags>
213 <spec>:res<oa>tart</oa> <oa>arg</oa> …</spec>
214 <description short="true">
215 <p>Force &dactyl.host; to restart. Useful when installing extensions.</p>
218 Any arguments supplied are parsed as command-line arguments as
219 specified in <t>startup-options</t>.
226 <!-- vim:se sts=4 sw=4 et: -->