mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-01 06:11:20 +00:00
add pshazz post-install
This commit is contained in:
parent
2a44854938
commit
20b99fc06a
11
pshazz.json
11
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'"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user