Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 17 additions & 26 deletions task/README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,30 @@
# config_task
# task

- [Task](https://taskfile.dev/)
- 2025-09-16 v3.45.3 のリリースで `$XDG_CONFIG_HOME/task/taskrc.yml` が使用可能になったのでテスト
- [complete example](https://taskfile.dev/docs/reference/config#example-configuration)
- 今のところ必要とか重要な機能ではないので、このディレクトリごと存在しなくても構わない

# usage
# tl;dr

```bash
cd ~/.config # $XDG_CONFIG_HOME or $HOME/.config
git clone https://github.com/officel/config_task.git ./task

# or I do it this way
cd ~/repos/github.com/officel/
git clone https://github.com/officel/config_task.git
ln -s ~/repos/github.com/officel/config_task/ ~/.config/task
```

using global tasks, copy them (of course, it's up to you).

```bash
cd
ln -s ~/.config/task/Taskfile.yml

alias t='task'
t
# このリポジトリのルートディレクトリ(このファイルのひとつ上のディレクトリ)
dotfiles $ pwd
/home/raki/officel/dotfiles

# task の設定は XDG_BASE_DIRECTORY の XDG_CONFIG_HOME/task に置いてある、ということ
dotfiles $ ls -l ~/.config/task
lrwxrwxrwx 1 raki raki 32 1月 2 02:56 /home/raki/.config/task -> /home/raki/officel/dotfiles/task

# 中身はこのディレクトリ
dotfiles $ ls -l ~/.config/task/
合計 4
-rwxrwxrwx 1 raki raki 1327 12月 31 15:14 README.md
-rwxrwxrwx 1 raki raki 161 12月 31 15:15 taskrc.yml
```

# note

- [go-task/task: A task runner / simpler Make alternative written in Go](https://github.com/go-task/task)
- [モダンなタスクランナーを求めて task (taskfile.dev) を使うまでの軌跡](https://zenn.dev/raki/articles/2024-05-30_task_runner)
- [Taskfile.yml のスタイルガイドに沿ったテンプレート](https://zenn.dev/raki/articles/2024-11-19_taskfile_style_guide)

# related my projects

- [officel/config_aqua: .config/aqua](https://github.com/officel/config_aqua)
- [officel/config_bash: .config/bash](https://github.com/officel/config_bash)
- [officel/config_git: .config/git](https://github.com/officel/config_git)
- [officel/config_task: .config/task](https://github.com/officel/config_task)