diff options
author | Steve Dignam <steve@dignam.xyz> | 2016-01-13 12:27:43 -0500 |
---|---|---|
committer | John Hood <cgull@glup.org> | 2016-03-30 23:52:19 -0400 |
commit | b275bdc5da099c64cafe948a6e33b4fbfdc9f073 (patch) | |
tree | 335f8ea89a4d1d26d13822934198a4eff1f3220b /conf | |
parent | 99ce327d93ca60c558364c96095adc33fcd8cf0d (diff) |
removed _get_cword
Diffstat (limited to 'conf')
-rw-r--r-- | conf/bash-completion/completions/mosh | 8 |
1 files 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 |