Skip to content
Myr

[zsh/bash-completion] Avoid caret expansion

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Close #233 setopt extendedglob on zsh caused caret in grep pattern to be expanded. Problem identified and patch submitted by @lazywei.

authored by Junegunn Choi · committed by Junegunn Choi · parent 8f371ee · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:shell/completion.bash+1 added-1 removed
187 unmodified lines
188}189190_fzf_ssh_completion() {191 _fzf_list_completion '+m' "$@" << "EOF"192 cat <(cat ~/.ssh/config /etc/ssh/ssh_config 2> /dev/null | \grep -i ^host | \grep -v '*') <(\grep -v '^\s*\(#\|$\)' /etc/hosts | \grep -Fv '0.0.0.0') | awk '{if (length($2) > 0) {print $2}}' | sort -u192 cat <(cat ~/.ssh/config /etc/ssh/ssh_config 2> /dev/null | \grep -i '^host' | \grep -v '*') <(\grep -v '^\s*\(#\|$\)' /etc/hosts | \grep -Fv '0.0.0.0') | awk '{if (length($2) > 0) {print $2}}' | sort -u193EOF194}195196_fzf_env_var_completion() {
67 unmodified lines
modified:shell/completion.zsh+1 added-1 removed