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 (Created) (JIRA)" <ji...@apache.org> on 2012/02/06 16:49:59 UTC
[jira] [Created] (FELIX-3340) Allow the prompt to be a Function
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
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
[jira] [Resolved] (FELIX-3340) Allow the prompt to be a Function
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger resolved FELIX-3340.
--------------------------------------
Resolution: Fixed
Fix Version/s: gogo.shell-0.12.0
Assignee: Felix Meschberger
Applied the patch in Rev. 1346792
> 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
> Assignee: Felix Meschberger
> Fix For: gogo.shell-0.12.0
>
> 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
[jira] [Updated] (FELIX-3340) Allow the prompt to be a Function
Posted by "Felix Meschberger (Updated) (JIRA)" <ji...@apache.org>.
[ 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