Mailinglist Archive: opensuse (3566 mails)
| < Previous | Next > |
[opensuse] function in .bashrc
- From: Vince Oliver <vince@xxxxxxxxxxxxxxx>
- Date: Wed, 25 Apr 2007 18:40:18 +0200 (CEST)
- Message-id: <Pine.LNX.4.62.0704251837100.28696@xxxxxxxxxxxxxx>
Hi
I would like to put a function into .bashrc file that would open a new Konsole in SUSE10.2 and cd into the result of the pwd command. Something like:
pwdinnk() {
p=`pwd`
echo $p
`dcop $KONSOLE_DCOP newSession`
cd $p
}
Everything works except it does not change the directory. `cd $p` does not work nither. Do you have some tips?
thanks
oliver
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |