Compare commits

...

4 Commits

Author SHA1 Message Date
Josef Utbult a7e3f3b012
Merge 7563f920c7 into 8fa10f43a0 2025-01-30 11:42:56 -08:00
vladislav doster 8fa10f43a0
fix(parser.zsh): `_p9k_parse_buffer` docstring typo (#2820)
- `pupulates` => `populates`
2025-01-29 05:28:19 -08: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
2 changed files with 7 additions and 1 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.

View File

@ -102,7 +102,7 @@ typeset -grA __p9k_pb_term_skip=(
# Usage: _p9k_parse_buffer <buffer> [token-limit]
#
# Parses the specified command line buffer and pupulates array P9K_COMMANDS
# Parses the specified command line buffer and populates array P9K_COMMANDS
# with commands from it. Terminates early and returns 1 if there are more
# tokens than the specified limit.
#