diff options
| author | Koichi Murase <myoga.murase@gmail.com> | 2025-06-03 21:29:36 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-06-09 21:46:53 +0900 |
| commit | b5cd8880b1e2884ad928beb9ab3fd21a599cc446 (patch) | |
| tree | bb0dda5476627d5d3ced7ee50477aeb961d02efb /shell | |
| parent | 44ddab881ee337d11db9203ce28996cde33207d8 (diff) | |
| download | fzf-b5cd8880b1e2884ad928beb9ab3fd21a599cc446.tar.gz | |
[bash,zsh] Process hostnames with uppercase letters in known_hosts
Diffstat (limited to 'shell')
| -rw-r--r-- | shell/completion.bash | 2 | ||||
| -rw-r--r-- | shell/completion.zsh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/shell/completion.bash b/shell/completion.bash index aef79060..afe19c25 100644 --- a/shell/completion.bash +++ b/shell/completion.bash @@ -503,7 +503,7 @@ if ! declare -F __fzf_list_hosts > /dev/null; then ) \ <( __fzf_exec_awk -F ',' ' - match($0, /^[[a-z0-9.,:-]+/) { + match($0, /^[[a-zA-Z0-9.,:-]+/) { $0 = substr($0, 1, RLENGTH) gsub(/\[/, "") for (i = 1; i <= NF; i++) diff --git a/shell/completion.zsh b/shell/completion.zsh index 45d0e955..b17271c5 100644 --- a/shell/completion.zsh +++ b/shell/completion.zsh @@ -281,7 +281,7 @@ if ! declare -f __fzf_list_hosts > /dev/null; then ) \ <( __fzf_exec_awk -F ',' ' - match($0, /^[[a-z0-9.,:-]+/) { + match($0, /^[[a-zA-Z0-9.,:-]+/) { $0 = substr($0, 1, RLENGTH) gsub(/\[/, "") for (i = 1; i <= NF; i++) |
