plastikfan / TerminalBuddy

Utility module for Windows Terminal
MIT License
0 stars 0 forks source link

Ensure global variable WindowsTerminalSettingsPath is defined properly #12

Closed plastikfan closed 3 years ago

plastikfan commented 4 years ago

WindowsTerminalSettingsPath may not be avilable in the built module. Also, make sure that any reference to is subject to Test-Path, so that there are no errors if TerminlaBuddy is installed but WindowsTerminal isn't.

branch: fix-settings-path

See: https://powershell.anovelidea.org/powershell/how-i-implement-module-variables/

plastikfan commented 4 years ago

Use module scope (ie script scope)