mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Show path in terminal title (#912)
* Show path in terminal title * Better terminal window title format Title is now "basename (full/path)"
This commit is contained in:
parent
f90e567a17
commit
1c2cb7fd31
|
@ -5993,6 +5993,10 @@ begin:
|
||||||
setdirwatch();
|
setdirwatch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Set terminal window title */
|
||||||
|
printf("\033]2;%s (%s)\007", xbasename(path), path);
|
||||||
|
fflush(stdout);
|
||||||
|
|
||||||
if (g_state.selmode && lastdir[0])
|
if (g_state.selmode && lastdir[0])
|
||||||
lastappendpos = selbufpos;
|
lastappendpos = selbufpos;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue