gpt4 book ai didi

Default shell in VS Code is not the same as gnome shell(VS代码中的默认外壳与GNOME外壳不同)

转载 作者:bug小助手 更新时间:2023-10-28 22:01:32 30 4
gpt4 key购买 nike



Terminal Screenshot


As seen in the above image, none of the regular commands work in vs code's integrated terminal. However the commands work perfectly fine in my gnome shell.

如上图所示,所有常规命令都不能在VS代码的集成终端中运行。然而,这些命令在我的GNOME外壳中工作得非常好。




Terminal Choices


I tried to change the default shells in vs code to /usr/bin/bash and even /usr/bin/sh but both of them still give me the same problem.

我尝试将vs代码中的默认shell改为/usr/bin/bash甚至/usr/bin/sh,但它们仍然给我同样的问题。


VS Code version


This is the version of visual studio code which I am using (This problem also existed on v1.81.1)

这是我正在使用的Visual Studio代码版本(此问题在v1.81.1中也存在)


Here is the output of neofetch

以下是neofetch的输出


OS: Fedora Linux 38 (Workstation Edition) x86_64
Host: VivoBook_ASUS Laptop X510UFO 1.0
Kernel: 6.4.10-200.fc38.x86_64
Uptime: 1 hour, 48 mins
Packages: 2891 (rpm), 17 (flatpak)
Shell: bash 5.2.15
Resolution: 1920x1080
DE: GNOME 44.3
WM: Mutter
WM Theme: Adwaita
Theme: Adwaita [GTK2/3]
Icons: Adwaita [GTK2/3]
Terminal: gnome-terminal
CPU: Intel i5-8250U (8) @ 3.400GHz
GPU: Intel UHD Graphics 620
GPU: NVIDIA GeForce MX130

更多回答

Is there a vscode setting to launch the shell as a login shell? That way your dotfiles get included.

是否有vscode设置将外壳作为登录外壳启动?这样,您的点文件就会被包括在内。

优秀答案推荐
更多回答

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com