rcore-os / rCore-Tutorial-v3

Let's write an OS which can run on RISC-V in Rust from scratch!
https://rcore-os.github.io/rCore-Tutorial-Book-v3/index.html
GNU General Public License v3.0
1.58k stars 452 forks source link

fix(Makefile)-fix-mount-errors-in-windows #85

Closed SARDONYX-sard closed 1 year ago

SARDONYX-sard commented 2 years ago

If you feel this is unnecessary, please close this pull request. :)

There are several possible options for the command.

(Option1) alias pwd -> Get-Location and considering the profile override maybe we should use Get-Location instead of pwd

PWD_CMD := powershell -NoProfile -Command "Write-Output $$(Get-Location)"

(Option2) Instead of PowerShell, we may want to use the following command.

PWD_CMD := cmd /c "echo %CD%"

(Another option) Differences in this kind of shell can be left to docker. Using docker-compose.yml

version: "3.9"

services:
  app:
    build:
      context: ./ # Dockerfile/URL Path
      dockerfile: Dockerfile
    image: dinghao188/rcore-tutorial:dev # as image name
    tty: true # == `docker -t`
    stdin_open: true # == `docker -i`
    volumes:
      - ./:/mnt/

2022-08-25 (2)

2022-08-25 (1)

codychau commented 1 year ago

your nvim configuration look great

SARDONYX-sard commented 1 year ago

your nvim configuration look great

Thank you. At this time I was using something called Lunarvim.

https://github.com/lunarvim/lunarvim

chyyuu commented 1 year ago

Thank you! I think if you use wsl2(ubuntu 20.04) in windows to develop rcore-tutorial-v3, you will meet much less problems.