bin/sym.completion in sym-2.5.0 vs bin/sym.completion in sym-2.5.1
- old
+ new
@@ -14,11 +14,11 @@
break
}
done
_sym_long_opts() {
- sym -h | grep -- '--' | egrep '^ -' | awk '{print $2}' | sort
+ sym -h | grep -- '--' | egrep '^ -' | awk '{print $2}' | sort
}
_sym_short_opts() {
sym -h | grep -- '--' | egrep '^ -' | awk '{print $1}' | sed 's/,//g' | sort
}
@@ -47,24 +47,23 @@
;;
esac
case "$cur" in
--*)
- export _SYM_COMP_LONG_OPTIONS=${_SYM_COMP_LONG_OPTIONS:-$(_sym_long_opts)}
- COMPREPLY=($( compgen -W "$_SYM_COMP_LONG_OPTIONS" -- "$cur" ))
+ export _sym_comp_long_options=${_sym_comp_long_options:-$(_sym_long_opts)}
+ COMPREPLY=($( compgen -W "$_sym_comp_long_options" -- "$cur" ))
;;
-*)
- export _SYM_COMP_SHORT_OPTIONS=${_SYM_COMP_SHORT_OPTIONS:-$(_sym_short_opts)}
- COMPREPLY=($( compgen -W "$_SYM_COMP_SHORT_OPTIONS" -- "$cur" ))
+ export _sym_comp_short_options=${_sym_comp_short_options:-$(_sym_short_opts)}
+ COMPREPLY=($( compgen -W "$_sym_comp_short_options" -- "$cur" ))
;;
*)
_filedir
;;
esac
return 0
-} &&
- complete -F _sym $nospace $filenames sym
+} && complete -F _sym $nospace $filenames sym
# Local variables:
# mode: shell-script
# sh-basic-offset: 4
# sh-indent-comment: t