3988 Views 3 Replies Latest reply: Aug 3, 2010 2:19 PM by mactomtom
partially, I could fix the bug...
Once you have downloaded the octave.zip-file and unzipped it, there is in addition to the octave.dmg file also a directory called "extras" which does contain a gnuplot.dmg file... You can install both programmes easily without any command line (what a pity, I wanna learn to work in the shell...)
Additionally, I downloaded aquaterm which allows to render gnoplot graphs.
Still, I would like to create a shell command called "octave" so that I can start "octave" directly from the terminal (instead of going to programmes and double click the icon "octave"). How is this possible?
If octave is really a .app directory (like most double-clickable applications), then you can create an alias
alias octave="open -a octave"
in your .bash_profile (if you do not have a .bash_profile, create one using a text editor such as Smultron (a free GUI text editor), or from the command line using "nano .bash_profile"
Stop and relaunch the Terminal application so the .bash_profile changes take effect.
Then you should be able to launch octave by just entering the command, or if you want to specify a file you would use