From b275bdc5da099c64cafe948a6e33b4fbfdc9f073 Mon Sep 17 00:00:00 2001 From: Steve Dignam Date: Wed, 13 Jan 2016 12:27:43 -0500 Subject: [PATCH] removed _get_cword --- conf/bash-completion/completions/mosh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/conf/bash-completion/completions/mosh b/conf/bash-completion/completions/mosh index 4734dd2..b66a857 100644 --- a/conf/bash-completion/completions/mosh +++ b/conf/bash-completion/completions/mosh @@ -1,11 +1,13 @@ -#!/bin/bash +#!/usr/bin/env bash + +_mosh() { + local cur + _init_completion || return -_mosh () { local simple_flags="-a -b -4 -6 -p" local flags="--client= --server= --predict= --family= --port= --bind-server= --ssh= --no-init --help --version" - local cur=$(_get_cword) if [[ "$cur" == --* && "$COMP_CWORD" == 1 ]]; then COMPREPLY=($(compgen -W "$flags" -- "$cur")) elif [[ "$cur" == -* && "$COMP_CWORD" == 1 ]]; then