Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cupric
Fzf
Commits
e2401350
Commit
e2401350
authored
9 years ago
by
Gene Pavlovsky
Browse files
Options
Download
Email Patches
Plain Diff
Update completion.bash
Fixes #548. Avoid using a subshell in _fzf_defc().
parent
e867355b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
shell/completion.bash
+3
-2
shell/completion.bash
with
3 additions
and
2 deletions
+3
-2
shell/completion.bash
+
3
-
2
View file @
e2401350
...
...
@@ -272,14 +272,15 @@ if type _completion_loader > /dev/null 2>&1; then
fi
_fzf_defc
()
{
local
cmd func opts orig_var orig
local
cmd func opts orig_var orig
def
cmd
=
"
$1
"
func
=
"
$2
"
opts
=
"
$3
"
orig_var
=
"_fzf_orig_completion_
$cmd
"
orig
=
"
${
!orig_var
}
"
if
[
-n
"
$orig
"
]
;
then
eval
"
$(
printf
"
$orig
"
"
$func
"
)
"
printf
-v
def
"
$orig
"
"
$func
"
eval
"
$def
"
else
complete
-F
"
$func
"
$opts
"
$cmd
"
fi
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets