mirror of
https://github.com/sxyazi/yazi.git
synced 2024-12-25 17:54:57 +03:00
docs: fix mktemp
filename
This commit is contained in:
parent
2efe97d140
commit
a5eed70872
@ -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…
Reference in New Issue
Block a user