Theme directory from environment
This commit is contained in:
parent
e32b7f57c2
commit
c2df8fc769
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue