From 16c5de8aeaae63dd2bf423b9d1a970355f104ea1 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Mon, 8 Mar 2010 21:59:28 +0100 Subject: Add commands option to bash completion Add -c/--commands option to the bash completion script. --- priv/shell-completion/bash/rebar | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'priv/shell-completion/bash/rebar') diff --git a/priv/shell-completion/bash/rebar b/priv/shell-completion/bash/rebar index a7a1426..b01f6f6 100644 --- a/priv/shell-completion/bash/rebar +++ b/priv/shell-completion/bash/rebar @@ -6,8 +6,8 @@ _rebar() COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" - sopts="-h -v -f -j" - lopts=" --help --verbose --force --jobs=" + sopts="-h -c -v -f -j" + lopts=" --help --commands --verbose --force --jobs=" cmdsnvars="analyze build_plt check_plt clean compile \ create-app create-node eunit generate \ install int_test perf_test test \ -- cgit v1.1 From 459b312adab8fc25d72f7f3255db23c4cf44e24f Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Thu, 11 Mar 2010 01:40:06 +0100 Subject: Add template variable to bash completion Add create command's template variable to bash completion. --- priv/shell-completion/bash/rebar | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'priv/shell-completion/bash/rebar') diff --git a/priv/shell-completion/bash/rebar b/priv/shell-completion/bash/rebar index b01f6f6..ba87bdd 100644 --- a/priv/shell-completion/bash/rebar +++ b/priv/shell-completion/bash/rebar @@ -11,7 +11,7 @@ _rebar() cmdsnvars="analyze build_plt check_plt clean compile \ create-app create-node eunit generate \ install int_test perf_test test \ - case= force=1 jobs= suite= verbose=1 appid= target=" + case= force=1 jobs= suite= verbose=1 appid= target= template=" if [[ ${cur} == --* ]] ; then COMPREPLY=( $(compgen -W "${lopts}" -- ${cur}) ) -- cgit v1.1