From a15463978ef0037c2d6a197f152cf185a7ec50a1 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 18 Oct 2016 22:29:09 +0300 Subject: [PATCH] .shellrc: minor optimization in delegate_completion --- .shellrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.shellrc b/.shellrc index 1302818..e21f720 100644 --- a/.shellrc +++ b/.shellrc @@ -119,10 +119,10 @@ if test -n "$BASH_VERSION"; then delegate_completion() { local prog completion_f programs prog="$1" - completion_f="$2" - shift; shift - programs="$@" if has_completion "$prog"; then + completion_f="$2" + shift; shift + programs="$@" eval "_${prog}_completion_loader() { _completion_loader $prog complete -F $completion_f $programs -- 2.39.5