Skip to content

Commit fddac5b

Browse files
authored
Merge pull request #69 from jwittner/dev/aliases
Add aliases for commands commonly ran from the terminal
2 parents d680cef + 3c64a95 commit fddac5b

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

UnitySetup/UnitySetup.psd1

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,23 +73,16 @@ ScriptsToProcess = @()
7373
# NestedModules = @()
7474

7575
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
76-
FunctionsToExport = @(
77-
'Find-UnitySetupInstaller',
78-
'Get-UnityProjectInstance',
79-
'Get-UnitySetupInstance',
80-
'Install-UnitySetupInstance',
81-
'Select-UnitySetupInstance',
82-
'Uninstall-UnitySetupInstance',
83-
'Start-UnityEditor'
84-
)
76+
FunctionsToExport = '*'
77+
8578
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
8679
CmdletsToExport = @()
8780

8881
# Variables to export from this module
8982
VariablesToExport = @()
9083

9184
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
92-
AliasesToExport = @()
85+
AliasesToExport = '*'
9386

9487
# DSC resources to export from this module
9588
# DscResourcesToExport = @()

UnitySetup/UnitySetup.psm1

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,4 +849,12 @@ function Start-UnityEditor
849849
if($PassThru) { $process }
850850
}
851851
}
852-
}
852+
}
853+
854+
New-Alias -Name gusi -Value Get-UnitySetupInstance
855+
New-Alias -Name gupi -Value Get-UnityProjectInstance
856+
New-Alias -Name susi -Value Select-UnitySetupInstance
857+
New-Alias -Name sue -Value Start-UnityEditor
858+
859+
860+
Export-ModuleMember -Function '*-Unity*' -Alias '*'

0 commit comments

Comments
 (0)