summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ivybanner4
1 files changed, 3 insertions, 1 deletions
diff --git a/ivybanner b/ivybanner
index 5bfaccc..32b1abc 100644
--- a/ivybanner
+++ b/ivybanner
@@ -99,6 +99,8 @@ Getopt::Long::Configure('pass_through');
'nocursor', 'help', 'override', 'size=s', 'smallsize' );
&usage if $opt{help};
+$conffile = $ENV{"HOME"} . "/.ivybanner" if ( -f $ENV{"HOME"} . "/.ivybanner");
+
if ($opt{conf}) {
if (not -f $opt{conf}) {
die "No such file $opt{conf}\n";
@@ -1082,7 +1084,7 @@ Hide mouse cursor (for touchscreen usage).
=item B<-conf> file
-Specify configuration file. Default is /etc/ivybanner.conf
+Specify configuration file. Default is $HOME/.ivybanner if available or /etc/ivybanner.conf otherwise.
=item B<-dir> directory