码迷,mamicode.com
首页 > 系统相关 > 详细

mac系统vscode环境配置,以及iTerm2配置Zsh + on-my-zsh shell

时间:2019-02-25 15:13:35      阅读:575      评论:0      收藏:0      [点我收藏+]

标签:gitlens   start   down   mon   oom   系统   res   workbench   obb   

https://segmentfault.com/a/1190000013612471?utm_source=tag-newest

https://ohmyz.sh/

 一:安装iTerm2终端

 https://www.iterm2.com/downloads.html

1:查看当前的shell环境

echo $SHELL

技术图片

2: 查看系统自带哪些shell

cat /etc/shells

技术图片

3:切换Zsh shell

chsh -s /bin/zsh
# Mac如下
# 在 /etc/shells 文件中加入如下一行
/usr/local/bin/zsh
# 接着运行
chsh -s /usr/local/bin/zsh

 自动安装oh-my-zsh 插件

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

 

重启iTerm2终端

效果

技术图片

 

二:vscode中配置shell

技术图片

 

vscode中字体及颜色的配置:

{
    "editor.fontSize": 14,
    "editor.tabSize": 2,
    "workbench.colorTheme": "Monokai",
    "workbench.startupEditor": "newUntitledFile",
    "window.zoomLevel": 1,
    "typescript.check.npmIsInstalled": false,
    "extensions.ignoreRecommendations": true,
    "git.ignoreMissingGitWarning": true,
    "gitlens.advanced.messages": {
        "suppressShowKeyBindingsNotice": true
    },
    "terminal.integrated.shell.linux": "/bin/zsh",
    "terminal.integrated.shell.osx": "/bin/zsh"
}

效果:

技术图片

 

mac系统vscode环境配置,以及iTerm2配置Zsh + on-my-zsh shell

标签:gitlens   start   down   mon   oom   系统   res   workbench   obb   

原文地址:https://www.cnblogs.com/Joans/p/10430781.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!