回答編集履歴

2

修正

2022/07/06 02:16

投稿

bsdfan
bsdfan

スコア4578

test CHANGED
@@ -1,4 +1,4 @@
1
- wslを`--norc`オプションをつけて実行すると、.bashrcを読み込まずにwslを起動できるようです。
1
+ wsl -eでbashを`--norc`オプションをつけて実行すると、.bashrcを読み込まずにwslを起動できるようです。
2
2
  ```
3
3
  wsl -e bash --norc
4
4
  ```

1

追記

2022/07/05 22:57

投稿

bsdfan
bsdfan

スコア4578

test CHANGED
@@ -1,7 +1,8 @@
1
- wslを`--norc`オプションをつけて起動したらいいようです。
1
+ wslを`--norc`オプションをつけて実行すると、.bashrcを読み込まずにwslを起動できるようです。
2
2
  ```
3
3
  wsl -e bash --norc
4
4
  ```
5
+ 起動できたら、あとはwsl内で.bashrcを修正できるのでは。
5
6
 
6
7
  参考: [https://askubuntu.com/questions/1156606](https://askubuntu.com/questions/1156606)
7
8