You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (Updated) (JIRA)" <ji...@apache.org> on 2012/02/06 16:51:59 UTC

[jira] [Updated] (FELIX-3340) Allow the prompt to be a Function

     [ https://issues.apache.org/jira/browse/FELIX-3340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger updated FELIX-3340:
-------------------------------------

    Attachment: FELIX-3340.patch

Proposed patch.

WDYT ?
                
> Allow the prompt to be a Function
> ---------------------------------
>
>                 Key: FELIX-3340
>                 URL: https://issues.apache.org/jira/browse/FELIX-3340
>             Project: Felix
>          Issue Type: Improvement
>          Components: Gogo Shell
>    Affects Versions: gogo.shell-0.10.0
>            Reporter: Felix Meschberger
>         Attachments: FELIX-3340.patch
>
>
> It would be nice to have a dynamic command prompt such that for example the current working directory could be displayed:
>   prompt = {
>        dirname = ( ( cd ) name )
>        "$dirname \$"
>   }
> To implement this, a prompt variable would be checked whether it is a Function and be executed if so using the result as the prompt.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira