From 889ffe02bf5e5668f75ef1cbb79e2151b86c26a4 Mon Sep 17 00:00:00 2001 From: Josiah Pohl Date: Wed, 23 Dec 2020 16:16:11 -0700 Subject: [PATCH] get rid of task warrior references in the completion file and examples --- completion.bash | 26 +------------------------- examples/http-1 | 2 -- examples/http-2 | 2 -- 3 files changed, 1 insertion(+), 29 deletions(-) diff --git a/completion.bash b/completion.bash index 4b78b1d..427c806 100644 --- a/completion.bash +++ b/completion.bash @@ -38,30 +38,6 @@ _wenv_new() { fi } -_wenv_task() { - if [[ $word == -* ]]; then - _wenv_comp "-h" - else - _wenv_comp "show add" - fi -} - -_wenv_task_add() { - if [[ ${prev} == "-w" ]]; then - _show_wenvs - elif [[ ${word} == -* ]]; then - _wenv_comp "-w -h" - fi -} - -_wenv_task_show() { - if [[ ${prev} == "-w" ]]; then - _show_wenvs - elif [[ ${word} == -* ]]; then - _wenv_comp "-w -h" - fi -} - _wenv_edit() { _show_wenvs } @@ -158,7 +134,7 @@ _wenv() { if [[ $word == -* ]]; then _wenv_comp '-h' else - local opts="start stop cd new task edit rm mv source extension bootstrap exec" + local opts="start stop cd new edit rm mv source extension bootstrap exec" COMPREPLY=( $(compgen -W "${opts}" -- ${word}) ) fi ;; diff --git a/examples/http-1 b/examples/http-1 index 18e6fe6..e2ea510 100644 --- a/examples/http-1 +++ b/examples/http-1 @@ -26,8 +26,6 @@ wenv_def() { WENV_DIR="$HOME/scratch/webdev-practice" WENV_DEPS=() - WENV_PROJECT='' - WENV_TASK='' startup_wenv() { wenv_tmux_split -n http window 'python -m http.server' diff --git a/examples/http-2 b/examples/http-2 index e269c52..cc48ca0 100644 --- a/examples/http-2 +++ b/examples/http-2 @@ -33,8 +33,6 @@ wenv_def() { WENV_DIR="$HOME/scratch/webdev-practice" WENV_DEPS=() - WENV_PROJECT='' - WENV_TASK='' startup_wenv() { tmux rename-window js