Compare commits

...

3 Commits

Author SHA1 Message Date
Josef Utbult ed81d277f3
Merge 7563f920c7 into c85cd0f028 2024-12-30 11:33:26 +01:00
Josef Utbult 7563f920c7 Fix wrong variable name 2024-06-19 17:43:03 +02:00
Josef Utbult 4fc7271244 Try to fix wsl ssh issue 2024-06-19 17:39:23 +02:00
1 changed files with 6 additions and 0 deletions

View File

@ -8479,6 +8479,12 @@ _p9k_init_ssh() {
if [[ -n $SSH_CLIENT || -n $SSH_TTY || -n $SSH_CONNECTION ]]; then
P9K_SSH=1
return 0
elif [[ \
$(grep -i Microsoft /proc/version) && \
$(cmd.exe /c 'echo %SSH_CLIENT%' 2>/dev/null | sed $'s/\r//' | grep ' 22$') \
]]; then
P9K_SSH=1
return 0
fi
# When changing user on a remote system, the $SSH_CONNECTION environment variable can be lost.