mirror of
https://github.com/jarun/nnn.git
synced 2025-04-05 21:16:36 +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
1 changed files with 4 additions and 0 deletions
|
@ -5993,6 +5993,10 @@ begin:
|
|||
setdirwatch();
|
||||
}
|
||||
|
||||
/* Set terminal window title */
|
||||
printf("\033]2;%s (%s)\007", xbasename(path), path);
|
||||
fflush(stdout);
|
||||
|
||||
if (g_state.selmode && lastdir[0])
|
||||
lastappendpos = selbufpos;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue