Skip to content

Commit 815cd34

Browse files
committed
Revert HISTFILE location
This is not working under Ubuntu. Will investigate later
1 parent 8cad89e commit 815cd34

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

mathicsscript/termshell.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
from pygments.formatters.terminal import TERMINAL_COLORS
2323
from pygments.formatters import Terminal256Formatter
24-
from pygments.styles import get_style_by_name, get_all_styles
24+
from pygments.styles import get_all_styles
2525
from pygments.util import ClassNotFound
2626

2727
from pygments.token import (
@@ -65,13 +65,14 @@
6565
except:
6666
HISTSIZE = 50
6767

68-
HISTFILE = os.path.join(CONFIGDIR, "history")
68+
# This doesn't work: investigate
69+
# HISTFILE = os.path.join(CONFIGDIR, "history")
70+
HISTFILE = osp.expanduser("~/.mathicsscript_hist")
6971

7072
RL_COMPLETER_DELIMS_WITH_BRACE = " \t\n_~!@#%^&*()-=+{]}|;:'\",<>/?"
7173
RL_COMPLETER_DELIMS = " \t\n_~!@#%^&*()-=+[{]}\\|;:'\",<>/?"
7274

73-
74-
from mathics.core.parser import LineFeeder, FileLineFeeder
75+
from mathics.core.parser import LineFeeder
7576

7677

7778
def is_pygments_style(style):

0 commit comments

Comments
 (0)