From dcc5f2f9fdc3da9c1d2d51d26a6ed4ab1f3d420f Mon Sep 17 00:00:00 2001 From: KOSHIKAWA Kenichi Date: Thu, 13 Jan 2022 00:05:38 +0900 Subject: [PATCH] README.md: replace hardcoded path to command substitution Signed-off-by: KOSHIKAWA Kenichi --- README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index 925afc8f..b638ff37 100644 --- a/README.md +++ b/README.md @@ -24,11 +24,7 @@ Download the latest stable [release][release] for use on your desktop or server. ```shell brew install todo-txt -# For macOS on x86 CPU -cp -n /usr/local/opt/todo-txt/todo.cfg ~/.todo.cfg - -# For macOS on arm CPU -cp -n /opt/homebrew/opt/todo-txt/todo.cfg ~/.todo.cfg +cp -n $(brew --prefix)/opt/todo-txt/todo.cfg ~/.todo.cfg ``` **Note**: The `-n` flag for `cp` makes sure you do not overwrite an existing file.