1 Star 0 Fork 51

sunguilou / project_10215868

forked from chuanjiao10 / kasini3000 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
tj添加path.ps1 531 Bytes
一键复制 编辑 原始数据 按行查看 历史
chuanjiao10 提交于 2019-12-06 16:11 . 添加部分脚本
#建议保存编码为:bom头 + utf8
if ($global:tj添加path -eq $true)
{
exit
}
$global:tj添加path = $true
if ( ($IsWindows -eq $True) -or ($PSVersionTable.psversion.major -lt 6) ) #win
{
if ( ($Env:Path).ToLower().contains('kasini') )
{
}
else
{
$Env:Path = 'c:\ProgramData\kasini3000;' + $Env:Path
}
}
if ($IsLinux -eq $True)
{
# 区分的大小写!
if ( ($Env:PATH).ToLower().contains('kasini') )
{
}
else
{
$Env:PATH = '/etc/kasini3000/:' + $Env:PATH
}
}
exit 0
PowerShell
1
https://gitee.com/sunguilou/kasini3000.git
git@gitee.com:sunguilou/kasini3000.git
sunguilou
kasini3000
project_10215868
master

搜索帮助