Ensure that a history directory is created

This code did not actually work before ;_;

I forgot a !
This commit is contained in:
Andrew R. M 2018-01-04 19:06:22 -05:00
parent bb11db42a5
commit c29c31200b

View File

@ -27,7 +27,7 @@ export LESSHISTFILE="-"
export PYTHONSTARTUP="$HOME/.pythonrc" export PYTHONSTARTUP="$HOME/.pythonrc"
# History preferences # History preferences
if [ -w "$HOME/.history/sh" ]; then if [ ! -w "$HOME/.history/sh" ]; then
if [ ! -d "$HOME/.history" ]; then if [ ! -d "$HOME/.history" ]; then
mkdir "$HOME/.history" mkdir "$HOME/.history"
fi fi