mskyaxl / wsl-terminal

Terminal emulator for Windows Subsystem for Linux (WSL)
MIT License
3.12k stars 160 forks source link

showing tmux session name on each instance of wsl-terminal #198

Open AltfunsMA opened 3 years ago

AltfunsMA commented 3 years ago

I have different instances of wsl-terminal (i.e. the 'physical' windows on my MS Windows GUI) attached to different tmux sessions, inside which I generally ssh into different servers running different projects.

However, the wsl-terminal instance title is always the folder I launched tmux from on my local machine, which is impractical.

I note that the config file has a setting title = " ", which seems to be used when use_tmux=1; but use_tmux=1 and the .bashrc code supplied seem geared to only having one instance of wsl-terminal.

I'd like the title to show the name of the tmux session the wsl-terminal instance is attached to. Is this possible? Something like setting that variable to title=tmux_session