From 0d102b6a211c311a9189326ac6dd84d196b48849 Mon Sep 17 00:00:00 2001 From: NISHIMURA Yoshitaka Date: Sat, 3 Jan 2026 04:56:25 +0900 Subject: [PATCH] docs: task/README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - taskは便利だけどtaskrcには今のところ必要な機能がない - グローバルに設定する何か、なら各taskfileにきちんと設定を書くべき --- task/README.md | 43 +++++++++++++++++-------------------------- 1 file changed, 17 insertions(+), 26 deletions(-) diff --git a/task/README.md b/task/README.md index 8b19e43..6dfe4ed 100644 --- a/task/README.md +++ b/task/README.md @@ -1,28 +1,26 @@ -# 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 @@ -30,10 +28,3 @@ t - [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)