我在我的Windows 10 Ubuntu Bash中编辑bashrc脚本时犯了一个错误。现在每次打开Bash时,它都会立即退出。有没有办法让我在不运行bashrc的情况下打开Bash,还是我需要重新安装它?
--norc Do not read and execute the system wide initialization file
/etc/bash.bashrc and the personal initialization file ~/.bashrc
if the shell is interactive. This option is on by default if
the shell is invoked as sh.
wsl.exe -e bash --norc
~/.bashrc
文件所做的更改。wsl --set-default --set-default Ubuntu-20.04
wsl.exe -e bash --norc
.bashrc
文件呢? - Carl Witthoft.bashrc
重命名为.bashrc.hold
。或者这样做也是危险的吗? - G-Man Says 'Reinstate Monica'