[英]ubuntu 14.04 apt/aptitude autocompletion with oh-my-zsh not working
[英]how to configure VSCode to use oh-my-zsh in Ubuntu 18.04?
我正在尝试将oh-my-zsh
配置为我的 vscode 的集成终端。
波纹管是我的用户配置
{
"editor.fontSize": 12,
"editor.tabSize": 2,
"editor.wordWrap": "on",
"editor.minimap.enabled": false,
"workbench.iconTheme": "vscode-icons",
"terminal.integrated.fontSize": 12,
"window.zoomLevel": 0,
"vsicons.dontShowNewVersionMessage": true,
"terminal.integrated.shell.linux": "/bin/zsh"
}
但是每当我尝试打开集成终端时,它都会抛出一个错误The terminal process command '/bin/zsh' failed to launch (exit
OS : Ubuntu 18.04
VSCode : 1.26.1
echo $SHELL
输出是/bin/zsh
我也尝试使用 value zsh
和/usr/bin/zsh
但得到了同样的错误。
同样适用于/bin/bash
我还需要做什么?
要解决您的问题,请在终端中运行命令
which zsh
然后在 VSC 中,替换
"terminal.integrated.shell.linux": "/bin/zsh"
与
"terminal.integrated.shell.linux": "{the location your terminal pointed to}"
在适用于 Linux 的 Windows 子系统 (WSL) 中,请执行以下操作:
F1
user settings
"terminal.integrated.shell.osx": "/usr/local/bin/zsh",
"terminal.integrated.shellArgs.windows": [
"-c",
"zsh"
],
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.