Hi
I would like to put a function into .bashrc file that would:
open a new Konsole and cd into the result of pwd command. Something like:
pwdinnk() {
p=`echo pwd`
echo $p
`dcop $KONSOLE_DCOP newSession`
`cd $p`
}
This does not work. In details:
1. The echo $p part does not give me back the current path. What is wrong here?
2. this part `dcop $KONSOLE_DCOP newSession` works OK. It opens a new Konsole just as I want
3. The `cd $p` I wrote ad hoc just to present the idea. What would be the proper syntax here?
Could somebody help me on this?
thanks
oliver
I would like to put a function into .bashrc file that would:
open a new Konsole and cd into the result of pwd command. Something like:
pwdinnk() {
p=`echo pwd`
echo $p
`dcop $KONSOLE_DCOP newSession`
`cd $p`
}
This does not work. In details:
1. The echo $p part does not give me back the current path. What is wrong here?
2. this part `dcop $KONSOLE_DCOP newSession` works OK. It opens a new Konsole just as I want
3. The `cd $p` I wrote ad hoc just to present the idea. What would be the proper syntax here?
Could somebody help me on this?
thanks
oliver