Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FunctionsToImport should include the function's Alias where applicable #83

Closed
proxb opened this issue Aug 16, 2016 · 1 comment
Closed
Milestone

Comments

@proxb
Copy link
Owner

proxb commented Aug 16, 2016

No description provided.

@proxb proxb changed the title FunctionsToImport should include Aliases where applicable FunctionsToImport should include the function's Alias where applicable Aug 16, 2016
@proxb proxb added this to the 1.6.1.1 milestone Aug 19, 2016
@proxb proxb modified the milestones: 1.7.1.1, 1.6.1.1 Aug 27, 2016
@proxb
Copy link
Owner Author

proxb commented Aug 29, 2016

This should work.

$InitialSessionState = [System.Management.Automation.Runspaces.InitialSessionState]::CreateDefault()
$AliasEntry = New-Object System.Management.Automation.Runspaces.SessionStateAliasEntry -ArgumentList 'GCI2','Get-ChildItem2'
$InitialSessionState.Commands.Add($AliasEntry)

@proxb proxb modified the milestones: 1.7.2.0, 1.7.1.1 Aug 29, 2016
proxb added a commit that referenced this issue Aug 29, 2016
@proxb proxb closed this as completed Aug 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant