text stringlengths 0 834k |
|---|
pager path The path to an external pager program |
used to page long displays. If blank, |
or set to 'internal', the internal |
pager is used. If 'none', paging |
is disabled. |
profile-track 1 or 0 If 1, PPM arranges to have the |
ASPN server track your PPM profile. |
This means that every time your install |
or remove a package, your profile is |
updated on the server. If 0, you must |
manually save your profile using |
'profile save'. |
prompt-context 1 or 0 If 1, enables the prompt to change |
based on the current state of PPM, i.e |
showing current target, query, etc. |
prompt-slotsize integer If prompt-verbose is 1, this defines |
the width of each slot in the prompt. |
For instance, 4 means to use 4 |
character-wide slots. |
prompt-verbose 1 or 0 If 0, uses numbers to represent the |
context in the prompt; much shorter. |
If prompt-context is set to 0, there |
will be no visible difference in the |
'prompt-verbose' settings. |
rebuild-html 1 or 0 If 0, suppresses regeneration of HTML |
documentation when packages are |
installed. If 1, enables HTML to be |
generated from POD documentation. |
Enabling this option may slow down |
package installation. |
remove-verbose 1 or 0 If 0, suppresses most output when |
removing packages. If 1, prints the |
name of each file as it is removed. |
sort-field field The field by which to sort search and |
query results. Valid fields are |
ABSTRACT, AUTHOR, NAME, TITLE |
and VERSION. |
tempdir path A temporary directory into which |
packages are downloaded and expanded |
during 'install' and 'upgrade'. |
trace-file path A file to which PPM will write tracing |
information. |
trace-level integer If 0 or negative, tracing is disabled. |
Positive, non-zero integers result in |
tracing information being written to |
'trace-file'. Higher settings of |
'trace-level' result in more trace |
information. |
upgrade-verbose 1 or 0 If 0, suppresses most output when |
upgrading packages. If 1, prints the |
name of each file as it is upgraded. |
For information about migrating options used by previous versions of |
PPM, see 'help ppm_migration'. |
When you assign a value to a setting, PPM saves the configuration. |
Therefore, setting values persist across sessions. |
END |
sub comp_settings { |
my $o = shift; |
my ($word, $line, $start) = @_; |
my @words = $o->line_parsed($line); |
# To please the users of Bash, we'll allow 'set foo=bar' to work as well, |
# since it's really easy to do: |
if (defined $words[1] and $words[1] =~ /=/ and not defined $words[2]) { |
my @kv = split '=', $words[1]; |
splice(@words, 1, 1, @kv); |
} |
my $words = @words; |
my @compls; |
# return the keys when we're completing the second word |
if ($words == 1 or $words == 2 and $start != length($line)) { |
@compls = $o->settings_getkeys(); |
return $o->completions($word, \@compls); |
} |
# Return no completions for 'unset'. |
return () if matches($o->{API}{cmd}{run}{name}, 'u|nset'); |
# provide intelligent completion for arguments: |
if ($words ==2 or $words == 3 and $start != length($line)) { |
# Completion for boolean values: |
my @bool = $o->completions($words[1], \@boolean_keys); |
my @path = $o->completions($words[1], \@path_keys); |
if (@bool == 1) { |
return $o->completions($word, [0, 1]); |
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.