src/nnn.c | 4 ++++ diff --git a/src/nnn.c b/src/nnn.c index b5172e7e6055e8f189e59a3818a3c4d91b10fd9a..89a23ef8c18aa7caf7d1e590087fe8d223e5ace5 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -5993,6 +5993,10 @@ valid_parent(path, lastname); setdirwatch(); } + /* Set terminal window title */ + printf("\033]2;%s (%s)\007", xbasename(path), path); + fflush(stdout); + if (g_state.selmode && lastdir[0]) lastappendpos = selbufpos;