Skip to content

Commit

Permalink
setting c8y alias before it is referenced in PSc8y module
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Apr 12, 2021
1 parent 4893f9b commit b6123f2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/PSc8y/tools/modulefile/PartTwo.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@

#region imports

# Add alias to c8y binary
Set-Alias -Name "c8y" -Value (Get-ClientBinary) -Scope "Global"

#
# Create session folder
#
Expand All @@ -22,9 +26,6 @@ if ($script:IsLinux -or $script:IsMacOS) {
}
}

# Add alias to c8y binary
Set-Alias -Name "c8y" -Value (Get-ClientBinary) -Scope "Global"

# Load c8y completions for powershell
c8y completion powershell | Out-String | Invoke-Expression

Expand Down

0 comments on commit b6123f2

Please sign in to comment.