Compare commits
4 Commits
2020d4d276
...
a7e3f3b012
| Author | SHA1 | Date |
|---|---|---|
|
|
a7e3f3b012 | |
|
|
8fa10f43a0 | |
|
|
7563f920c7 | |
|
|
4fc7271244 |
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in New Issue