From 3864050d56af8a03facfea0222a7956f51f424f2 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Mon, 27 Jul 2020 16:29:55 +0800 Subject: [PATCH] [feature] not working if shell was fish --- win/profile.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/win/profile.ps1 b/win/profile.ps1 index d796095..9bf69cb 100644 --- a/win/profile.ps1 +++ b/win/profile.ps1 @@ -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" } \ No newline at end of file