mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
docs: fix mktemp filename
This commit is contained in:
parent
2efe97d140
commit
a5eed70872
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue