Skip to content

Commit

Permalink
feat: add dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillmorozov committed Jul 29, 2024
1 parent a38ed49 commit b321e70
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,26 @@ tasks:
cmds:
- brew install starship

install:omz:
desc: Install Oh My Zsh.
status:
- '[ -d ~/.oh-my-zsh ]'
cmds:
# yamllint disable-line rule:line-length
- sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

install:completions:
desc: Generate completions for most used tools.
vars:
COMPLETION_PATH: ~/.oh-my-zsh/custom/completions
deps:
- install:omz
cmds:
- brew completions link
- fd --gen-completions=zsh > {{.COMPLETION_PATH}}/_fd
- rg --generate=complete-zsh > {{.COMPLETION_PATH}}/_rg
- task --completion zsh 2> {{.COMPLETION_PATH}}/_task

install:omz:
desc: Install Oh My Zsh.
status:
- '[ -d ~/.oh-my-zsh ]'
cmds:
# yamllint disable-line rule:line-length
- sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

stow:package:
internal: true
label: stow:{{.PACKAGE}}
Expand Down

0 comments on commit b321e70

Please sign in to comment.