You are not logged in.
Pages: 1
Hello everybody!
When I use 'vim' with 'xfce4-terminal' the name of the opened file doesn't appear in the title bar. Instead it shows either 'Untitled' or ' user@domain'.
When I use vim with 'terminator' it shows '/usr/bin/vim' but not the file's name.
Is it possible to show opened file name in both?
I already have 'replace initial title' activated in both.
p.s. Even when I open either 'terminator' or 'xfce4-terminal' as 'root' it doesn't show 'root@domain' but still 'user@domain'.
What is missing here?
Offline
Brianna Ghey — Rest In Power
Offline
tried both suggestions on that page and with both get same output
$ vim newfile
vim newfile $
it also started adding the current folder after the 'user@domain' so all that was seen was actually the 'user@domain' which was not very helpful.
that's with 'xfce4-terminal'.
with 'terminator' it did not work at all.
so I copied the '.bashrc' from Arch and added
trap 'echo -ne "\033]2;$(history 1 | sed "s/^[ ]*[0-9]*[ ]*//g")\007"' DEBUG
it's not as good as I was expecting it to be but it's better.
Last edited by amaro (2022-04-10 17:06:36)
Offline
Pages: 1