diff --git a/gprompt.pl b/gprompt.pl index d42cb81..332487b 100644 --- a/gprompt.pl +++ b/gprompt.pl @@ -291,6 +291,9 @@ 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;