summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-05-30 04:48:41 -0500
committerJesse Luehrs <doy@tozt.net>2013-05-30 04:48:41 -0500
commitfb9b17bd52b48a7eea32585e0f743a887a61c7d7 (patch)
treed0fa26b6fc197584d941e8d7aef478b8b294826a
parentd8a90a03e9c5e8e2732374a10e0e79289ffb793c (diff)
downloadreply-fb9b17bd52b48a7eea32585e0f743a887a61c7d7.tar.gz
reply-fb9b17bd52b48a7eea32585e0f743a887a61c7d7.zip
find the configuration in a cross-platform way
-rw-r--r--bin/reply5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/reply b/bin/reply
index ddd03e2..569816e 100644
--- a/bin/reply
+++ b/bin/reply
@@ -3,9 +3,12 @@ use strict;
use warnings;
# PODNAME: reply
+use File::HomeDir;
+use File::Spec;
+
use Reply;
-my $cfg = "$ENV{HOME}/.replyrc";
+my $cfg = File::Spec->catfile(File::HomeDir->my_home, ".replyrc");
my %args = (config => $cfg);
if (!-e $cfg) {