Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-6943

Support for custom .rc and .profile scripts to be loaded by groovysh

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.3.3
    • Fix Version/s: 2.4.0-beta-1
    • Component/s: Groovysh
    • Labels:
      None
    • Environment:

      Description

      Currently, groovysh parses the following two files for user-provided initialization commands upon start-up into interactive mode:

      $HOME/.groovy/groovysh.rc
      $HOME/.groovy/groovysh.profile

      It would be nice if those file locations would not be hard-coded or if there would be a way to provide additional scripts.

      That would make groovysh a lot more extensible. Users could build custom shells on top of groovysh. A shell extension could then be a bundle of custom command class files and .profile and .rc files which load those custom commands using the register command.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              stunksys Korbinian Schmid
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: