removed _get_cword

This commit is contained in:
Steve Dignam
2016-01-13 12:27:43 -05:00
committed by John Hood
parent 99ce327d93
commit b275bdc5da
+4 -2
View File
@@ -1,11 +1,13 @@
#!/bin/bash #!/usr/bin/env bash
_mosh() { _mosh() {
local cur
_init_completion || return
local simple_flags="-a -b -4 -6 -p" local simple_flags="-a -b -4 -6 -p"
local flags="--client= --server= --predict= --family= --port= local flags="--client= --server= --predict= --family= --port=
--bind-server= --ssh= --no-init --help --version" --bind-server= --ssh= --no-init --help --version"
local cur=$(_get_cword)
if [[ "$cur" == --* && "$COMP_CWORD" == 1 ]]; then if [[ "$cur" == --* && "$COMP_CWORD" == 1 ]]; then
COMPREPLY=($(compgen -W "$flags" -- "$cur")) COMPREPLY=($(compgen -W "$flags" -- "$cur"))
elif [[ "$cur" == -* && "$COMP_CWORD" == 1 ]]; then elif [[ "$cur" == -* && "$COMP_CWORD" == 1 ]]; then