当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
CMT2380F32模块开发4-UART例程
CMT2380F32模块开发7-reset例程
Diagnostic Log and Trace——dlt的编译和安装
Safety helmet recognition - construction safety "regulator"
论文解读TransFG: A Transformer Architecture for Fine-grained Recognition
MSP430学习总结(二)——GPIO
STM32F407-浅~~析UART异步通信&USART_Init函数入口参数
NUC980-开发环境搭建
USB 枚举过程中8 字节标准请求解析
实时特征计算平台架构方法论和基于 OpenMLDB 的实践
Safety helmet recognition system
小程序技术原理分析
STM32学习笔记(白话文理解版)—按键控制
从概念认识AI
张小龙的微信公开课(2019年)
栈stack
The latest safety helmet wearing recognition system in 2022
论文解读:GAN与检测网络多任务/SOD-MTGAN: Small Object Detection via Multi-Task Generative Adversarial Network
OpenMLDB v0.5.0 发布 | 性能、成本、灵活性再攀高峰
目标检测——Faster-RCNN 之 RCNN









