Bash Editor

Add this URL to your Eclipse Installation to reach this solution's update site.

2023-03 (4.27), 2022-12 (4.26), 2022-09 (4.25), 2022-06 (4.24), 2022-03 (4.23), 2021-12 (4.22), 2021-09 (4.21), 2021-06 (4.20), 2021-03 (4.19), 2020-12 (4.18), 2020-09 (4.17), 2020-06 (4.16), 2020-03 (4.15), 2019-12 (4.14), 2019-09 (4.13), 2019-06 (4.12), 2019-03 (4.11), 2018-12 (4.10), 2018-09 (4.9), Photon (4.8), Oxygen (4.7), Neon (4.6), 2023-06 (4.28), 2023-09 (4.29), 2023-12 (4.30)

https://de-jcup.github.io/update-site-eclipse-bash-editor/update-site

Learn more...
Solution Description

This plugin is a bash script editor

Features:

  • Integrated bash debugger
  • Run bash scripts from IDE by configurable parameters, environment variables etc.
  • Adds a configurable "Open path in terminal" action in project and package explorer
  • Marks variable occurrences
  • Templates (some defaults + customizable)
  • Tasks (some defaults + customizable)
  • Syntax highlighting
  • Outline
    • Can be sorted alphabetical
    • Can open call hierarchy for a function (context menu)
  • Quick-Outline (CTRL + o )
  • Open referenced functions by hyperlink (script, project or even workspace scope possible)
  • Bash Call Hierarchy
  • Mark occurrences in editor by double click to
    • Variables
    • Functions
    • Feature can be toggled at toolbar ("Toggle Mark Occurrences (ALT+SHIFT+O)"
  • Validation
  • Simple code completion (keywords + existing words)
  • Colors can be customized. Also additional defaults for dark theme exists.
  • Bracket switching + highlighting
  • Block commenting (CTRL+7)
  • Auto bracket closing for []
  • Small
  • Tooltips for keywords (offline description + link to online information)
  • Works on Linux, Windows and Mac out of the box.
  • Save Actions
    • External Tool can be used for auto format on save, default is set to beautysh

Additional links

Categories: Editor, Tools

Additional Details

Eclipse Versions: 2023-03 (4.27), 2022-12 (4.26), 2022-09 (4.25), 2022-06 (4.24), 2022-03 (4.23), 2021-12 (4.22), 2021-09 (4.21), 2021-06 (4.20), 2021-03 (4.19), 2020-12 (4.18), 2020-09 (4.17), 2020-06 (4.16), 2020-03 (4.15), 2019-12 (4.14), 2019-09 (4.13), 2019-06 (4.12), 2019-03 (4.11), 2018-12 (4.10), 2018-09 (4.9), Photon (4.8), Oxygen (4.7), Neon (4.6), 2023-06 (4.28), 2023-09 (4.29), 2023-12 (4.30)

Platform Support: Windows, Mac, Linux/GTK

Organization Name: Albert Tregnaghi

Development Status: Production/Stable

Date Created: Monday, July 10, 2017 - 06:27

License: Apache 2.0

Date Updated: Friday, October 6, 2023 - 10:50

Submitted by: Albert Tregnaghi

Screenshot
Date Ranking Installs Clickthroughs
December 2023 44/541 166 3
November 2023 47/686 979 27
October 2023 41/673 1077 24
September 2023 38/663 1163 15
August 2023 45/673 1036 29
July 2023 40/668 1049 20
June 2023 39/669 1173 29
May 2023 41/671 1171 24
April 2023 43/667 1202 24
March 2023 37/686 1613 35
February 2023 37/667 1437 31
January 2023 35/675 1538 34
View Data for all Listings

Unsuccessful Installs

Unsuccessful Installs in the last 7 Days: 5

Download last 500 errors (CSV)

Marketplace Drag to Install Button

By adding the following code below to your website you will be able to add an install button for Bash Editor.

HTML Code:

Markdown Syntax:

Output:

Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client

Reviews Add new review

In my own installation I got still complains at startup about https://dl.bintray.com/de-jcup/basheditor (old update site) not available... (eclipse auto updater). So I did remove the old update site location manually.

If you have the same problem, you can do this as well by opening Window->Preferences ennter "update" in search field and select "Available Software Sites" in tree. Here you can remove https://dl.bintray.com/de-jcup/basheditor

Because of bintray sundown - see https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter there was a need to change the update site.

The new location starting with version 2.6.0 is now https://de-jcup.github.io/update-site-eclipse-bash-editor/update-site/

When you are using eclipse marketplace for installation the new update location will be automatically applied.

I installed bash editor in the following Eclipse Environment:

tinyurl.com/y4yc9p3q

Your videos all show Debug which I can't find, and your support seems to assume that thed are there.   I looked fhrough your Support page, debug page, and videos for 3 days, but couldn't find the right information. 

Is it there and intigraged and I am just missing something?  Or does something need to be brought in from github or somewhere else?

Thank your for your time and nice editor.

In reply to by John Sellers

I just released version 2.6.0 on eclipse marketplace which does always show up debug view automatically when not already visible. So this should solve your problem.

If you have more questions or need support please create an issue at https://github.com/de-jcup/eclipse-bash-editor

In most editors in Eclipse (e.g., the Java editor), one can "clone editor" and end up with two editors to the same file (especially useful for editing different parts of the same file). In this application, using "clone editor" ends up with separate instances or something such that making changes in one editor instance are not reflected in other. Furthermore, it makes it such that one cannot switch editor instances if one has saved in one of them as the other is out of sync with the file system.

 

Hi ,

I am getting a timeout when attempting to install:

 

eclipse.buildId=4.7.1.M20171009-0410
java.version=1.8.0_144
Created Time: 2018-05-28 14:10:33.171

org.eclipse.equinox.p2.transport.ecf
Error
Tue May 29 10:05:32 BST 2018
Unable to connect to repository https dl.bintray.com/de-jcup/basheditor/content.xml

 

Connection to dl.bintray.com/de-jcup/basheditor/p2.index failed on Connection timed out: connect. Retry attempt 0 started

 

In reply to by Shane Coyne

Hello scoyne,

I just tried a installation and all was working fine (Eclipse Oxygen 3) . Maybethis was a temporary problem or you have a network connection issue? Please try again.

If you have still any problems to open files with the editor, please report an issue at
https://github.com/de-jcup/eclipse-bash-editor/issues

Best wishes
Albert

In reply to by Jeffrey Hunter

Hello Jeffrey,

bash editor is tagged to support files with .sh ending (see https://marketplace.eclipse.org/category/free-tagging/fileextension_sh ) also the editor associates itself with this ending on installation.

If you have already installed a plugin which does already associate itself with those files the bash editor will be not the main editor until you change it in preferences.

An example to associate the editor with dedicated file types can be found at
https://github.com/de-jcup/eclipse-bash-editor/wiki/FAQ#why-is-bash-edi…

If you have still any problems to open files with the editor, please report an issue at
https://github.com/de-jcup/eclipse-bash-editor/issues

Got below exception:

Unable to read repository at "//dl.bintray.com/de-jcup/basheditor/content.xml".
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

In reply to by Jude Huang

Hello Jude,

as mentioned in my reply to another comment at https://marketplace.eclipse.org/comment/5148#comment-5148 :

I have just installed the plugin to a fresh eclipse instance and got no problems. I did the installation at 2018-01-29 23:30 german time.

I think this must have been a temporary problem at bintray server certificates - or you have a proxy server which is not trusting bintray certificates? If you have still such problems please create an issue at https://github.com/de-jcup/eclipse-bash-editor/issues 

Thank you

Albert

Hey there,

I got a certificate error while trying to install this script. I resolved that by adding the download URLdirectly into my eclipse and removing the s from https :)

Thanks for that editor, looks great so far ;)

Greetings,
Steffen

In reply to by Steffen Erlecke

Hello Steffen,

I just tried it out by my own - I did following steps to reproduce the problem:

  1. Downloaded a complete new eclipse eclipse-java-oxygen-2-win32-x86_64.zip from eclipse.org
  2. Opened it in empty workspace
  3. Installed bash editor by eclipse marketplace client
  4. Got a typical warning about unsigned plugin installation - as normal because I currently do not sign my plugins
  5. Restart -> OK
  6. After eclipse restart bash editor plugin works as expected

So I am not sure, but this could be an temporary issue with bintray hosting site. Maybe the certificates were outdated at your installation.
As I said, I changed nothing and it worked well (from Germany). So you should be applet to add the "s" again ...

If you have still such problems please create an issue at https://github.com/de-jcup/eclipse-bash-editor/issues

 

Thank you 

Albert

Hi Guys,

last little bugs are solved after I upgraded 1.5.1

I use this bash editor with various bash scripts, even a big script fo > 3500 lines.

Bash editor help me to keep clean and functional code.

The best bash editor over the world!

 

Hi,

I found a little mismatch; see follow code

text="a b c"
read a b c<<<"$text
echo $a $b $c  # actual code, no here-document!

Bash editor does not recognize here-string (<<<) but it believes it is here-document (<<)

All the lines following <<< (in above example echo $a $b $c) are coloured as here-document until variable name (text in above example) is found.

Thanks

In reply to by Antonio Vigliotti

Hello Antonio again,

at https://github.com/de-jcup/eclipse-bash-editor/issues/90 I found out that you have not closed your string and this is the reason why the syntax highlighting does not work. Never the less I found out that <<< was internally handled as heredoc and not as herestring. This is now fixed, but has no influence to your described problem.

Could you please sign in to github and discuss the problems at https://github.com/de-jcup/eclipse-bash-editor/issues/90 ? This is much more convenient than on marketplace and it will be inside product issue tracking (change mangement...)

Thank you
Albert

Great! I am happy to say the little bug was solved!

After upgraded bash editor I can see good syntax colors.

Thanks to Albert. I strong suggest to use this bash editor to write and update bash script. It is better than vi and better than other bash tools. This bash editor help to avoid stupid mistakes writing bash scripts.

Thanks, thanks.

 

I searched for bash editor and now I found this plugin.

It is good and very useful.

Could be upgarded to solve some little mistakes. In this piece of code, the second if statament  is not coloured

   if [ -f /etc/lsb-release -o -d /etc/lsb-release.d ]; then
        DIST=$(grep "DISTRIB_ID" /etc/lsb-release|awk -F"=" '{print $2}'|tr -d "\"', \n")
        if [ -z "$DIST" ]; then
            DIST="Ubuntu"
        fi
    fi

Thanks for this plug-in