diff --git a/pshazz.json b/pshazz.json index bbf7aaf905..81addf1859 100644 --- a/pshazz.json +++ b/pshazz.json @@ -4,7 +4,7 @@ "extract_dir": "pshazz-master", "bin": [ "bin\\pshazz.ps1" ], "post_install": - "if(!(test-path $profile)) { '' >> $profile } + "if(!(test-path $profile)) { '' > $profile } if((gc $profile | sls pshazz) -eq $null) { write-host 'adding pshazz to your powershell profile' (gc $profile -raw) + \"`r`ntry { `$null = gcm pshazz -ea stop; pshazz init 'default' } catch { }`r`n\" > $profile