mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41: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
|
```bash
|
||||||
function ya() {
|
function ya() {
|
||||||
tmp="$(mktemp -t "yazi-cwd")"
|
tmp="$(mktemp -t "yazi-cwd.XXXXX")"
|
||||||
yazi --cwd-file="$tmp"
|
yazi --cwd-file="$tmp"
|
||||||
if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
|
if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
|
||||||
cd -- "$cwd"
|
cd -- "$cwd"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue