Check before attempting to load things
This commit is contained in:
		
							parent
							
								
									b8976a84a8
								
							
						
					
					
						commit
						209010e90e
					
				| @ -9,9 +9,13 @@ $GitPromptSettings.AfterStatus = "" | ||||
| # Enable Chocolatey completions. | ||||
| Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" | ||||
| # Enable op completions. | ||||
| if (Test-Path "$env:LOCALAPPDATA\1Password\cli\opProfile.psm1") { | ||||
|   Import-Module "$env:LOCALAPPDATA\1Password\cli\opProfile.psm1" | ||||
| } | ||||
| # Enable gh completions. | ||||
| if (Get-Command "gh" -ErrorAction SilentlyContinue) { | ||||
|   Invoke-Expression -Command $(gh completion -s powershell | Out-String) | ||||
| } | ||||
| 
 | ||||
| # Customize PowerShell prompt. | ||||
| function Prompt { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user