Skip to content

Commit

Permalink
fix(xfunc ssh identityfile): localize change to cur
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed May 30, 2023
1 parent a3345c6 commit 76b5726
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions completions/ssh
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ _comp_cmd_ssh__configfile()
# shellcheck disable=SC2120
_comp_xfunc_ssh_identityfile()
{
local cur=$cur
[[ ! $cur && -d ~/.ssh ]] && cur=~/.ssh/id
_comp_compgen -a filedir
if ((${#COMPREPLY[@]} > 0)); then
Expand Down

0 comments on commit 76b5726

Please sign in to comment.