use strict;
use POSIX;
+use Types::Serialiser;
BEGIN {
$self = $0; $self =~ s{^.*/(?=.)}{};
$pre =~ s/^\s+//mg; $pre =~ s/^\s+\n/ /g;
$post =~ s/^\s+//mg; $post =~ s/^\s+\n/ /g;
}
+ my $addpath = (cfg qw(oot path_add)) //
+ $use eq 'really' ? Types::Serialiser::true : Types::Serialiser::false;
+ $addpath =
+ !Types::Serialiser::is_bool $addpath ? $addpath :
+ $addpath ? '$HOME/.cargo/bin' :
+ undef;
+ if (defined $addpath) {
+ $pre .= <<END
+ PATH=$addpath:\${PATH-/usr/local/bin:/bin:/usr/bin};
+ export PATH;
+END
+ }
+
my $getuser = sub { cfgsn qw(oot user) };
my @command;
my $xe = $verbose >= 2 ? 'xe' : 'e';