-
-
Notifications
You must be signed in to change notification settings - Fork 121
Open
Description
In constrained mode the global $glyphs
variable is not evaludated.
Expected Behavior
Glyphs to show correctly after the module is loaded.
Current Behavior
Glyphs shows as a number instead of as an icon.
Possible Solution
Use Invoke-Expression
to evaluate the $glyphs
varaible.
Here is a workaround:
Import-Module Terminal-Icons
if ($null -eq $global:glyphs) {
$glPath = Split-path (get-module Terminal-Icons).Path
$global:glyphs = Invoke-Expression "& '$glPath/Data/glyphs.ps1'"
}
Steps to Reproduce (for bugs)
- Set powershell in constrained mode.
- Load Terminal-Icons (Notice evaluation error)
- Dir a folder.
Context
Your Environment
- Module version used:
- Operating System and PowerShell version:
Frulfump
Metadata
Metadata
Assignees
Labels
No labels