Compare commits
3 Commits
d7096de9d4
...
7263a6ea7b
| Author | SHA1 | Date |
|---|---|---|
|
|
7263a6ea7b | |
|
|
8fa10f43a0 | |
|
|
44ade697bf |
|
|
@ -8483,7 +8483,8 @@ _p9k_init_ssh() {
|
||||||
|
|
||||||
# When changing user on a remote system, the $SSH_CONNECTION environment variable can be lost.
|
# When changing user on a remote system, the $SSH_CONNECTION environment variable can be lost.
|
||||||
# Attempt detection via `who`.
|
# Attempt detection via `who`.
|
||||||
(( $+commands[who] )) || return
|
[[ -z "$(command -v who)" ]] && return
|
||||||
|
#(( $+commands[who] )) || return
|
||||||
|
|
||||||
local ipv6='(([0-9a-fA-F]+:)|:){2,}[0-9a-fA-F]+' # Simplified, only checks partial pattern.
|
local ipv6='(([0-9a-fA-F]+:)|:){2,}[0-9a-fA-F]+' # Simplified, only checks partial pattern.
|
||||||
local ipv4='([0-9]{1,3}\.){3}[0-9]+' # Simplified, allows invalid ranges.
|
local ipv4='([0-9]{1,3}\.){3}[0-9]+' # Simplified, allows invalid ranges.
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,7 @@ typeset -grA __p9k_pb_term_skip=(
|
||||||
|
|
||||||
# Usage: _p9k_parse_buffer <buffer> [token-limit]
|
# 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
|
# with commands from it. Terminates early and returns 1 if there are more
|
||||||
# tokens than the specified limit.
|
# tokens than the specified limit.
|
||||||
#
|
#
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue