1. Randy Stauner
  2. run_control

Commits

Randy Stauner  committed b5a7078

Get dzil completion from local checkout or url

  • Participants
  • Parent commits b6fd188
  • Branches master

Comments (0)

Files changed (2)

File home/.bashrc.d/completion.d/dzil.bashrc

  • Ignore whitespace
-which dzil &> /dev/null || return
-
-complete -W "installm $(dzil commands | awk -F : '/^ / { print $1 }')" dzil

File scripts/contrib.sh

View file
  • Ignore whitespace
   dl "$completion/$1.bashrc" "$2"
 }
 
+dzil_repo_comp=$HOME/data/builds/github/dist-zilla/misc/dzil-bash_completion
+if [[ -e $dzil_repo_comp ]]; then
+  ln -s $dzil_repo_comp $completion/dzil.bashrc
+else
+  dl_completion dzil https://github.com/rjbs/dist-zilla/raw/master/misc/dzil-bash_completion
+fi
+
 dl_completion django https://github.com/django/django/raw/master/extras/django_bash_completion
 
 dl_bin  es      http://download.elasticsearch.org/es2unix/es