终端
- 安装
zsh
:sudo apt zsh
- 安装 oh my zsh
网络不好
wget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh
chmod +x install.sh
- 安装 Powerlevel10k
- 安装Meslo Nerd Font字体
- 安装zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
- 安装zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
- 将
plugins
修改为:plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
- 修改为vim快捷键
sudo vim /etc/inputrc
注释EMACS模式 在sudo vim /etc/profile
添加set -o vi
- vim插件管理 https://github.com/k-takata/minpac
Windows Terminal
//Terminal 默认启动Ubuntu,与Ubuntu的guid相同
"defaultProfile": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c273}",
"initialCols": 70, //terminal 高度
"initialRows": 30, // 宽度
"guid": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c273}",
"hidden": false,
"name": "Ubuntu-20.04",
"source": "Windows.Terminal.Wsl",
"fontFace": "MesloLGS NF", //修改字体,为了使用Powerlevel10k
"startingDirectory": "D:\\Users\\ljz\\Desktop" // 启动路径
效果
创建快捷键
Windows+R 输入 shell:AppsFolder
- 之后找到需要的应用,右键点击创建桌面快捷
- 属性
->
快捷键