• Digit@lemmy.wtf
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 个月前

      I’m not a WSL user, but I presume it lets you run any shell that’s installed and available to its $PATH.

      So if you want to do the commands in bash, and you’re not in (or not sure if you’re in) bash, you can just type bash into the terminal prompt of whatever currently running shell, hit enter, then you’re in bash. Or for fish, or whatever else.

      (ps, my personal preference encouraged, yes, in general, use fish (where suitable [~ different usecase to wanting to specifically use “Git Bash”, like in OP’s link’s first step, I presume]), fish’s more human friendly in syntax and interactivity.) ;)

    • Successful_Try543@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 个月前

      Yes, whatever shell your WSL is using. Usually, it should be the Ubuntu default Bash, but if you happen to have chosen a distro that uses Fish or installed it yourself, it’s Fish.