Hacky fix for using history substring search in the OSX terminal.