Skip to content

Commit 1d79c0a

Browse files
authored
Merge pull request #2351 from seefood/fix/ssh-completion-at-sign
2 parents b2c131c + 72c04a8 commit 1d79c0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

completion/available/ssh.completion.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# shellcheck shell=bash
22
# Bash completion support for ssh.
33

4-
export COMP_WORDBREAKS=${COMP_WORDBREAKS/\:/}
4+
# Remove : and @ from COMP_WORDBREAKS to support user@host completion
5+
export COMP_WORDBREAKS=${COMP_WORDBREAKS//[:@]/}
56

67
_sshcomplete() {
78
local line CURRENT_PROMPT="${COMP_WORDS[COMP_CWORD]}"

0 commit comments

Comments
 (0)