mirror of
https://github.com/cmderdev/cmder.git
synced 2025-06-15 22:27:51 +08:00
sync
This commit is contained in:
6
vendor/bin/create-cmdercfg.ps1
vendored
6
vendor/bin/create-cmdercfg.ps1
vendored
@ -11,7 +11,7 @@ if ($shell -match 'powershell') {
|
||||
} elseif ($shell -match 'bash') {
|
||||
write-host "'$shell' is not supported at this time!"
|
||||
exit 0
|
||||
} else {
|
||||
} elseif ($shell -notMatch 'cmd') {
|
||||
exit 0
|
||||
}
|
||||
|
||||
@ -23,4 +23,8 @@ $CmderFunctions = Join-Path $CmderModulePath "Cmder.ps1"
|
||||
if ($shell -match 'cmd') {
|
||||
write-host "Generating Cmder Config for '$shell' shell in '$outfile'..."
|
||||
templateExpand "$env:cmder_root\vendor\user_init.cmd.template" "$outfile"
|
||||
} elseif ($shell -match 'powershell') {
|
||||
write-host "'$shell' is not supported at this time!"
|
||||
} elseif ($shell -match 'bash') {
|
||||
write-host "'$shell' is not supported at this time!"
|
||||
}
|
||||
|
Reference in New Issue
Block a user