aboutsummaryrefslogtreecommitdiff
path: root/php/readline.php
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2014-03-29 15:00:07 -0500
committerJoel Martin <github@martintribe.org>2014-03-29 15:00:07 -0500
commitdc7938d8e69982b2574a8e2e9fd1ca97b33f6e28 (patch)
tree4d158f596511fa5d5f9fd2272c738724ed0fd63a /php/readline.php
parent285b5ba7934222316872f189f886d1b9cec90793 (diff)
downloadmal-dc7938d8e69982b2574a8e2e9fd1ca97b33f6e28.tar.gz
mal-dc7938d8e69982b2574a8e2e9fd1ca97b33f6e28.zip
Clojure, Java, PHP: remove hardcoded readline history path.
Diffstat (limited to 'php/readline.php')
-rw-r--r--php/readline.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/php/readline.php b/php/readline.php
index 28d720d..d4b3ad7 100644
--- a/php/readline.php
+++ b/php/readline.php
@@ -1,6 +1,6 @@
<?php
-$HISTORY_FILE = "/home/joelm/.mal-history";
+$HISTORY_FILE = $_SERVER['HOME'] . "/.mal-history";
function mal_readline($prompt) {
global $HISTORY_FILE;