当前位置:网站首页>Vscode remote connection server terminal zsh+Oh-my-zsh + Powerlevel10 + Autosuggestions + Autojump + Syntax-highlighting
Vscode remote connection server terminal zsh+Oh-my-zsh + Powerlevel10 + Autosuggestions + Autojump + Syntax-highlighting
2022-08-11 06:32:00 【浮筒】
VscodeRemotely connect to the server terminalzsh+Oh-my-zsh + Powerlevel10 + Autosuggestions + Autojump + Syntax-highlighting的配置
博文介绍
本人在Mac端已经配置好了iterm2 + Oh-my-zsh + Powerlevel10 + Autosuggestions + Autojump + Syntax-highlighting的终端(terminal)环境,但是想用Vscode远程连接服务器,And also want to synchronize the server terminal,So record how to configure the server remotelyOh-my-zsh + Powerlevel10 + Autosuggestions + Autojump + Syntax-highlighting的终端环境.
达到的效果是Vscoderemote server terminal and Mac SSHThe connected server terminal can configure the environment.
环境
本机:MacOS
服务器:Ubuntu
配置ZSH与Oh-my-zsh
sudo apt-get update
sudo apt install zsh
chsh -s /bin/zsh
#重启终端
cd ~
wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
#powerlevel10k安装
git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
修改ZSH主题
vim ~/.zshrc
#将 ZSH_THEME 修改为 Powerlevel10
ZSH_THEME="powerlevel10k/powerlevel10k"
#按esc,然后输入:wq,敲回车,保存修改,Execute the following line again
source .zshrc

配置p10K与vscode
step1.进入p10K配置界面(You will be prompted which theme you prefer,根据提示选择)
step2.在vscodeModify the default terminal in ,Settings in the lower right corner“远程SSH”搜索terminal zsh,改成zsh
step3.在vscodeModify the terminal font in ,设置中搜索terminal font,改为MesloLGS NF,The premise is to ensure that the font is available in the system(为了防止vscodeThe terminal displays garbled fonts)
vscode终端显示效果
从Mac去sshAfter logging in, the remote terminal displays the same effect
显示效果:(Since paths have names,I'll code)

安装其他插件
Install very useful plugins below,You can search for instructions on how to use the plugin,这里不多阐述:
#安装插件-自动补全
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
#配置zsh-autosuggestions,同样打开.zshrc,将plugin加上一个zsh-autosuggestions:
vim ~/.zshrc
#在pluginsChange this line to the following line
plugins=(git zsh-autosuggestions)
#按esc,然后输入:wq,敲回车,保存修改,Execute the following line again
source .zshrc
#安装插件-语法高亮
git clone https://gitee.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
vim ~/.zshrc
#在pluginsChange this line to the following line
plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
#按esc,然后输入:wq,敲回车,保存修改,Execute the following line again
source .zshrc
#安装插件-Autojump
sudo apt install autojump
#Execute as a normal user
source /usr/share/autojump/autojump.sh on startup
#执行下面的命令让autojump 在 BASH shell 中永久生效
echo '. /usr/share/autojump/autojump.sh'>>~/.bashrc
边栏推荐
猜你喜欢
随机推荐
批量快速修改代码的正则表达式替换
CVPR2022——Not All Points Are Equal : IA-SSD
产品经理与演员有着天然的相似
物联网基础知识学习
pip安装报错:is not a supported wheel on this platform
Ubuntu下安装mysql笔记
论文解读TransFG: A Transformer Architecture for Fine-grained Recognition
需求文档(PRD)撰写指南
网络七层结构(讲人话)
2021-09-11 C语言 变量与内存分配
谨此留个纪念
红外线一认识
STM32F4-正点原子探索者-SYSTEM文件夹下的delay.c文件内延时函数详解
目标检测思维导图
产品如何拟定优化方案?
js常用方法对象及属性
C语言的编译
mount命令--挂载出现只读,解决方案
解决jupyter中import torch出错问题
我心仪的数据集—目标检测为主









