X-Git-Url: https://src.twobees.de/?a=blobdiff_plain;ds=sidebyside;f=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fmix-fast%2Fmix-fast.plugin.zsh;fp=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fmix-fast%2Fmix-fast.plugin.zsh;h=0000000000000000000000000000000000000000;hb=1a8e170bbe5c6641a26ab1ce2e6ce6c5c1faa4cd;hp=564c5056157157de9eb4d83ff03aaff91043172b;hpb=475ba35502579302593f4735c853c49ef1845dcb;p=dotfiles.git diff --git a/stow/oh-my-zsh/.oh-my-zsh/plugins/mix-fast/mix-fast.plugin.zsh b/stow/oh-my-zsh/.oh-my-zsh/plugins/mix-fast/mix-fast.plugin.zsh deleted file mode 100644 index 564c505..0000000 --- a/stow/oh-my-zsh/.oh-my-zsh/plugins/mix-fast/mix-fast.plugin.zsh +++ /dev/null @@ -1,30 +0,0 @@ -_mix_refresh () { - if [ -f .mix_tasks ]; then - rm .mix_tasks - fi - echo "Generating .mix_tasks..." > /dev/stderr - _mix_generate - cat .mix_tasks -} - -_mix_does_task_list_need_generating () { - [ ! -f .mix_tasks ]; -} - -_mix_generate () { - mix help | grep '^mix [^ ]' | sed -E "s/mix ([^ ]*) *# (.*)/\1:\2/" > .mix_tasks -} - -_mix () { - if [ -f mix.exs ]; then - if _mix_does_task_list_need_generating; then - echo "\nGenerating .mix_tasks..." > /dev/stderr - _mix_generate - fi - local tasks=(${(f)"$(cat .mix_tasks)"}) - _describe 'tasks' tasks - fi -} - -compdef _mix mix -alias mix_refresh='_mix_refresh'