From f1ed6a9782ee24857e10c0a36cbd0ddc607f4cad Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sun, 4 Oct 2020 11:25:05 -0400 Subject: [PATCH] change word break characters to make direct variable expansion completion work --- tools/lammps-shell/lammps-shell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/lammps-shell/lammps-shell.cpp b/tools/lammps-shell/lammps-shell.cpp index 3dd80482d2..d79e580ca2 100644 --- a/tools/lammps-shell/lammps-shell.cpp +++ b/tools/lammps-shell/lammps-shell.cpp @@ -439,7 +439,8 @@ static void init_commands() commands.push_back("clear_history"); // set name so there can be specific entries in ~/.inputrc - rl_readline_name = "lammps-shell"; + rl_readline_name = "lammps-shell"; + rl_basic_word_break_characters = " \t\n\"\\'`@><=;|&("; // attempt completions only if we are connected to a tty, // otherwise any tabs in redirected input will cause havoc.