From a5eed70872e1aafe62bbaa89263959b69f617e9c Mon Sep 17 00:00:00 2001 From: sxyazi Date: Fri, 11 Aug 2023 14:38:41 +0800 Subject: [PATCH] docs: fix `mktemp` filename --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 64799400..9cd013a9 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ There is a wrapper of yazi, that provides the ability to change the current work ```bash function ya() { - tmp="$(mktemp -t "yazi-cwd")" + tmp="$(mktemp -t "yazi-cwd.XXXXX")" yazi --cwd-file="$tmp" if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then cd -- "$cwd"