Skip to content

Commit

Permalink
Setup aliases in taskfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hilli committed Jun 25, 2023
1 parent b02aa6b commit 154deaa
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@

version: '3'

vars:
SHELL_COMP_PREFIX:
sh: |
if [ "$(type brew)" ]; then
brew --prefix
else
mkdir -p share/bash-completion/completions
mkdir -p share/zsh-completions
echo .
fi

tasks:
build:
Expand Down Expand Up @@ -43,6 +33,16 @@ tasks:
generates:
- "{{.SHELL_COMP_PREFIX}}/share/bash-completion/completions/kefw2"
- "{{.SHELL_COMP_PREFIX}}/share/zsh-completions/_kefw2"
vars:
SHELL_COMP_PREFIX:
sh: |
if [ "$(type brew)" ]; then
brew --prefix
else
mkdir -p share/bash-completion/completions
mkdir -p share/zsh-completions
echo .
fi
all:
desc: Run all tasks
Expand Down

0 comments on commit 154deaa

Please sign in to comment.