Set default TERM env and add Term::ReadLine::Gnu dependency
This commit is contained in:
parent
521ec5161f
commit
7807ee5ee3
2 changed files with 3 additions and 0 deletions
|
@ -6,6 +6,7 @@ WriteMakefile(
|
||||||
'DBI' => 0,
|
'DBI' => 0,
|
||||||
'DBD::SQLite' => 0,
|
'DBD::SQLite' => 0,
|
||||||
'Term::ReadLine' => 0,
|
'Term::ReadLine' => 0,
|
||||||
|
'Term::ReadLine::Gnu' => 0,
|
||||||
'Cwd' => 0,
|
'Cwd' => 0,
|
||||||
'File::HomeDir' => 0,
|
'File::HomeDir' => 0,
|
||||||
},
|
},
|
||||||
|
|
|
@ -6,6 +6,8 @@ use Environment::SQLite;
|
||||||
use Term::ReadLine;
|
use Term::ReadLine;
|
||||||
use Cwd;
|
use Cwd;
|
||||||
use File::HomeDir;
|
use File::HomeDir;
|
||||||
|
$ENV{TERM} = 'xterm-256color' unless exists $ENV{TERM};
|
||||||
|
|
||||||
|
|
||||||
# Initialize command history and environment
|
# Initialize command history and environment
|
||||||
my $history = History::SQLite->new(
|
my $history = History::SQLite->new(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue