I have the number of my xterm (i.e., the value of /dev/tty??) saved as an environment variable, TTY e.g.,
echo $TTY returns
11. I'd like to include this number in the title, along with the name of the file when I open vi.
Currently I have
set titlestring=%-25.55F\ %a%r%m titlelen=17
I've tried the obvious:
set titlestring=$TTY\ %-25.55F\ %a%r%m titlelen=17
But this doesn't expand $TTY, e.g., and the title of my xterm window is
Could somebody please advise how to get the desired result? Thanks!