|
From: Brad M. <mac...@mr...> - 2003-09-10 14:39:34
|
beanshell != bash just put the startup script in .jedit/startup and it will be run when jEdit starts David Aldrich wrote: > Thanks for this advice. I have tried it and it works. Just for the > >record I reinstalled jedit into c:\jedit4_1 (was c:\Program >Files\jedit4.1) so that I could specify the path easily from the Cygwin >prompt. So now I type: > >C:/jedit4_1/jedit > >from the Cygwin prompt and jedit starts up. However, the Console window >then has path C:/jedit4_1. I would have preferred it to default to the >path jedit was started from, which in my case is: > >C:/FetsSdk/fets_nios > >I tried to run a start-up script to achieve this. This script is >jedit_startup.bsh and contains: > >runCommandInConsole(view,"System","cd c:\\FetsSdk\\fets_nios"); > >I then invoked the script from the Cygwin prompt as follows by invoking >a bash script containing: > >#!/bin/bash >C:/jedit4_1/jedit -run=jedit_startup.bsh > >This did not have the desired effect. Jedit started ok but opened a >buffer called >'-run=jedit_startup.bsh' and the console pwd remained as C:/jedit4_1. > > |