Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the bugs 'no such file or directory: ../external/async/async.zsh' by windows. change README.md. #2096

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,38 @@ version is **4.3.11**.
done
```

If you use **windows**, please use this command。

```bat
@echo off
setlocal enabledelayedexpansion
REM YOUR HOME DIR
set "HomeDir=%USERPROFILE%"
set "sourceDir=%HomeDir%\.zprezto\runcoms"
set "linkDir=%HomeDir%"
echo "sourceDir = %sourceDir%"
echo "linkDir = %linkDir%"

if not exist "%linkDir%" mkdir "%linkDir%"
for /R "%sourceDir%" %%F in (*) do (
set "fileName=%%~nxF"
REM echo "filename=!fileName!"
REM echo "F=%%F"
REM pause
if /I not "!fileName!"=="README.md" (
mklink "%linkDir%\.!fileName!" "%%F"
)
)
```

**Note:** If you already have any of the given configuration files, `ln` in
the above operation will cause an error. In simple cases, you can load
Prezto by adding the line `source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"` to
the bottom of your _`${ZDOTDIR:-$HOME}/.zshrc`_ and keep the rest of your
Zsh configuration intact. For more complicated setups, we recommend that you
back up your original configs and replace them with the provided Prezto
[_`runcoms`_][10].

04. Set Zsh as your default shell:

```console
Expand Down
2 changes: 1 addition & 1 deletion modules/prompt/functions/async
2 changes: 1 addition & 1 deletion modules/prompt/functions/prompt_agnoster_setup
2 changes: 1 addition & 1 deletion modules/prompt/functions/prompt_powerlevel10k_setup
2 changes: 1 addition & 1 deletion modules/prompt/functions/prompt_powerline_setup
2 changes: 1 addition & 1 deletion modules/prompt/functions/prompt_pure_setup