数ヶ月前、私はgit bash(Windows用Git)にzshをインストールし、oh-my-zshとWindows Terminalをインストールしましたが、すべてがうまくいきました。最近 Windows ターミナルを開いたとき、把握して修正できないエラーが発生しました。どうすれば修正できるかを知っている人はいますか?
Windows 端末を開く際にエラーが発生しました。
(anon):15: can't set tty pgrp: operation not permitted
/c/Users/myUsername/.oh-my-zsh/tools/check_for_upgrade.sh:32: can't set tty pgrp: operation not permitted
/c/Users/myUsername/.oh-my-zsh/oh-my-zsh.sh:67: can't set tty pgrp: operation not permitted
/c/Users/myUsername/.oh-my-zsh/oh-my-zsh.sh:68: can't set tty pgrp: operation not permitted
compinit:539: can't set tty pgrp: operation not permitted
/c/Users/myUsername/.oh-my-zsh/lib/theme-and-appearance.zsh:35: can't set tty pgrp: operation not permitted
/c/Users/myUsername/.oh-my-zsh/lib/theme-and-appearance.zsh:43: can't set tty pgrp: operation not permitted
私のWindowsターミナル設定:
{
"commandline": "%PROGRAMFILES%\\git\\usr\\bin\\bash.exe -i -l",
"cursorShape": "filledBox",
"fontFace": "MesloLGL NF",
"fontSize": 12,
"guid": "{00000000-0000-0000-ba54-000000000002}",
"icon": "%PROGRAMFILES%/Git/mingw64/share/git/git-for-windows.ico",
"name": "Bash",
"padding": "8",
"startingDirectory": "%USERPROFILE%",
"snapOnInput": true
}
私のもの.bash_profile
:
# Launch Zsh
if [ -t 1 ]; then
exec zsh
fi