[feature] not working if shell was fish

This commit is contained in:
Klesh Wong 2020-07-27 16:29:55 +08:00
parent 36b7f62561
commit 3864050d56

View File

@ -6,6 +6,7 @@
Set-PSReadLineOption -EditMode Emacs
$Env:Path += ";$PSScriptRoot\bin"
Set-Alias -Name k kubectl
Set-Prompt
function kcc { k config get-contexts $args }
function kcu { k config use-context $args}
@ -68,5 +69,5 @@ function ssh-copy-id {
$UserHost
)
Get-Content $IdentityFile | ssh $UserHost "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys"
Get-Content $IdentityFile | ssh $UserHost "umask 077; mkdir -p .ssh ; cat >> .ssh/authorized_keys"
}