From 20b99fc06a354fa66be207bec1323bb9df30308b Mon Sep 17 00:00:00 2001 From: Luke Sampson Date: Thu, 15 Aug 2013 13:46:32 +1000 Subject: [PATCH] add pshazz post-install --- pshazz.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pshazz.json b/pshazz.json index 80f98c5fc2..bbf7aaf905 100644 --- a/pshazz.json +++ b/pshazz.json @@ -2,5 +2,14 @@ "version": "0.2013.07.10", "url": "https://github.com/lukesampson/pshazz/archive/master.zip", "extract_dir": "pshazz-master", - "bin": [ "bin\\pshazz.ps1" ] + "bin": [ "bin\\pshazz.ps1" ], + "post_install": + "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 + } else { + write-host 'it looks like pshazz is already in your powershell profile, skipping' + } + pshazz init 'default'" } \ No newline at end of file