Skip to content

Commit b78aa7e

Browse files
committed
Check if running in iTerm2 and throw if not
1 parent 3776879 commit b78aa7e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shell/AIShell.Integration/AIShell.psm1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
if ($IsMacOS -and $env:TERM_PROGRAM -ne "iTerm.app") {
2+
throw "The AIShell module requires iTerm2 to work properly. Please install and run from the iTerm2 terminal."
3+
}
4+
15
$module = Get-Module -Name PSReadLine
26
if ($null -eq $module -or $module.Version -lt [version]"2.4.2") {
37
throw "The PSReadLine v2.4.2-beta2 or higher is required for the AIShell module to work properly."

0 commit comments

Comments
 (0)