Skip to content

Commit

Permalink
fix(quick-start): add more "X" to template to fix some distros (#55)
Browse files Browse the repository at this point in the history
Some distros like latest Alpine 3.18 + Alpine 3.19 requires at least 6 "X"s
  • Loading branch information
NamesMT authored Apr 5, 2024
1 parent c3a99a2 commit 63059b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ We suggest using this `yy` shell wrapper that provides the ability to change the

```bash
function yy() {
local tmp="$(mktemp -t "yazi-cwd.XXXXX")"
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")"
yazi "$@" --cwd-file="$tmp"
if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
cd -- "$cwd"
Expand All @@ -39,7 +39,7 @@ function yy() {

```sh
function yy
set tmp (mktemp -t "yazi-cwd.XXXXX")
set tmp (mktemp -t "yazi-cwd.XXXXXX")
yazi $argv --cwd-file="$tmp"
if set cwd (cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
cd -- "$cwd"
Expand All @@ -53,7 +53,7 @@ end
```sh
def --env yy [...args] {
let tmp = (mktemp -t "yazi-cwd.XXXXX")
let tmp = (mktemp -t "yazi-cwd.XXXXXX")
yazi ...$args --cwd-file $tmp
let cwd = (open $tmp)
if $cwd != "" and $cwd != $env.PWD {
Expand Down

0 comments on commit 63059b4

Please sign in to comment.