~ 2 min read, 5 min install ~
ShellEd is an Eclipse plugin for editing bash files and other shell scripts.
If your project consists primarily of scripts, use an editor like Atom. It has built-in syntax highlighting. If you have a large project with just a few scripts, ShellEd will suit your needs.
(Scroll down to see my Final Thoughts on editors.)
~ 1 min ~
Eclipse's plugin manager allows you to add remote plugin sites. Unfortunately, you download ShellEd and add it locally.
- If you don't have Eclipse, download it now.
Download ShellEd. The file is a zipped archive named something like
~ 4 min ~
Now that you have the plugin file, open Eclipse and do the following:
- Click Help > Install New Software...
- Click Add... in the upper right.
- Click Archive...
- Navigate to where you saved the zipped archive
net.sourceforge.shelled-site-2.0.x.zipand select it.
- Click OK. (Don't worry about the optional Name field. Eclipse will name it automatically.)
- Select the new Shell Script checkbox.
- Click Next.
- Click Next again.
- Select "I accept the terms of the license agreement."
- Click Finish.
Eclipse will calculate ShellEd's dependencies, fetch any that are missing, and install the plugin.
- During installation, Eclipse will halt and warn you that the plugin contains "unsigned content". Click OK to continue the installation.
After installing, Eclipse will ask to restart. Click Yes to restart and activate ShellEd.
- If you had any shell scripts open, close them and reopen them to enable syntax highlighting. Otherwise it looks as if the plugin did not install correctly.
You can now edit shell scripts with syntax highlighting and integrated man page information. You can even run them in Eclipse. Enjoy!
I was happy the installation was more straightforward this time. But I wasn't delighted. In four years, Eclipse has made no strides to simplify plugin or project management. Its user experience exemplifies the "What Not to Do" sections of About Face.
- It makes you click through lots of nested modal windows to add plugin "sites". It should use a central repository akin to NPM, PyPi, or GitHub.
- It makes you choose between confusing options. For example, the label Archive means "local file" and the label Local means "directory". It should provide one prompt that allows the selection of a file or directory.
- It forces esoteric project creation. It should let me open a directory, edit its files, and grow it into something more.
Eclipse has its place. It is a powerful editor that can be extended to do just about anything. But this power comes at a steep price: usability. I am grateful for today's nimble, organic editors like Atom and Sublime. They may not do everything, but they do one thing well: they get out of your way.