In gnome-terminal, I set the following command in Edit->Current
Profile->Title and Command->Custom command
However $PWD is not showing as the current directory when I type
ctrl+shift+N? I'm wondering how to get the correct current directory
in gnome-terminal.
ssh -t targethost "echo PWD=$PWD; cd $PWD; /bin/bash"