How to get the current directory in gnome-terminal?

View: New views
1 Messages — Rating Filter:   Alert me  

How to get the current directory in gnome-terminal?

by Peng Yu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
_______________________________________________
gnome-list mailing list
gnome-list@...
http://mail.gnome.org/mailman/listinfo/gnome-list