How to get the current directory in gnome-terminal?



HI,

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"

Regards,
Peng


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]