[forge-issues] [JBoss JIRA] (FORGE-1622) It would be good if Aesh had access to export variables
Daniel Cunha (JIRA)
issues at jboss.org
Sat Jun 7 18:38:15 EDT 2014
[ https://issues.jboss.org/browse/FORGE-1622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12974413#comment-12974413 ]
Daniel Cunha commented on FORGE-1622:
-------------------------------------
fixed in Aesh 0.56-SNAPSHOT.
https://github.com/aeshell/aesh/pull/74
https://github.com/aeshell/aesh/pull/79
It's need set ExportUsesSystemEnvironment as true. As well:
settings.setExportUsesSystemEnvironment(true);
{code}
SettingsBuilder newSettings = new SettingsBuilder(settings)
.historyFile(history)
.aliasFile(alias)
.exportFile(export)
.setExportUsesSystemEnvironment(true)
.interruptHook(new ForgeInterruptHook(registry));
{/code}
> It would be good if Aesh had access to export variables
> -------------------------------------------------------
>
> Key: FORGE-1622
> URL: https://issues.jboss.org/browse/FORGE-1622
> Project: Forge
> Issue Type: Feature Request
> Components: UI - Shell
> Affects Versions: 2.1.1.Final
> Reporter: Antonio Goncalves
> Assignee: Daniel Cunha
> Priority: Minor
> Fix For: 2.x Future
>
>
> This would be a "nice to have" feature from the shell command line.
> I'm under OS X and I have a set of variables that I've exported. As an example, all my code is under {{$CODE_HOME}}. It would be good if I code {{cd $CODE_HOME}} when I'm in Aesh :
> {code}
> ~$ cd $CODE_HOME // Under OS X
> ~/Documents/Code$ forge // Entering Forge
> _____
> | ___|__ _ __ __ _ ___
> | |_ / _ \| `__/ _` |/ _ \ \\
> | _| (_) | | | (_| | __/ //
> |_| \___/|_| \__, |\___|
> |___/
> JBoss Forge, version [ 2.1.1.Final ] - JBoss, by Red Hat, Inc.
> [Code]$ cd ~
> [antoniombp]$ cd $CODE_HOME // Good if it goes to the right directory
> [antoniombp]$ echo $CODE_HOME // Doesn't have access to the exported variable
> [antoniombp]$
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
More information about the forge-issues
mailing list