Removed theme dir override variable

It can be done through the usual env configuration stuff and I didn't
remember that.
This commit is contained in:
Emmanuel BENOîT 2022-10-22 12:56:49 +02:00
parent 5a3d9d9c91
commit 73c324286e

View file

@ -298,9 +298,6 @@ sub load_theme
( map { $ENV{HOME} . '/' . $_ } @{$CONFIG{cfg_user_themes}} ) ,
@{$CONFIG{cfg_sys_themes}}
);
if ($CONFIG{cfg_from_env} && exists $ENV{GPROMPT_THEME_DIR}) {
unshift @tdirs, $ENV{GPROMPT_THEME_DIR};
}
foreach my $dir ( @tdirs ) {
my $path = "$dir/${theme}.pm";
next unless -f $path;