Ubuntu美化+安装软件

Ubuntu美化+安装软件

安装软件

g++

sudo apt install g++

curl

sudo apt install curl

git

sudo apt install git

Vim

sudo apt install vim

VSCode

https://code.visualstudio.com/Download
找到下载文件夹,有一个code***.deb文件
sudo dpkg -i code***.deb

一些小小的个人设置
  • 自动保存

搜索Auto Save设置为afterDelay

  • 更改VSCode顶部样式

搜索window.titlebarstyle, 修改为custom

WPS

https://www.wps.cn/product/wpslinux 选择deb的X64
找到下载文件夹,有一个wps***.deb文件
sudo dpkg -i wps***.deb

安装完之后WPS提示缺失字体"Symbol、Wingdings、Wingdings 2…"

解决办法

1. 下载缺少的字体:链接: https://pan.baidu.com/s/1i5dzB9r 密码: pwe1
2. sudo unzip wps_symbol_fonts.zip -d /usr/share/fonts/wps-office
3. 重启WPS

参考: https://www.cnblogs.com/EasonJim/p/7146587.html

firefox插件

  • 暴力猴

https://greasyfork.org/zh-CN
在这个网站上添加暴力猴的插件,如:
https://greasyfork.org/zh-CN/scripts/378351-csdngreener-csdn%E5%B9%BF%E5%91%8A%E5%AE%8C%E5%85%A8%E8%BF%87%E6%BB%A4-%E5%85%8D%E7%99%BB%E5%BD%95-%E4%B8%AA%E6%80%A7%E5%8C%96%E6%8E%92%E7%89%88-%E6%9C%80%E5%BC%BA%E8%80%81%E7%89%8C%E8%84%9A%E6%9C%AC-%E6%8C%81%E7%BB%AD%E6%9B%B4%E6%96%B0

https://greasyfork.org/zh-CN/scripts/460743-%E5%B1%8F%E8%94%BD%E5%B9%BF%E5%91%8A-%E5%B1%8F%E8%94%BD%E8%B0%B7%E6%AD%8C%E5%B9%BF%E5%91%8A-%E7%99%BE%E5%BA%A6%E5%B9%BF%E5%91%8A-%E7%9F%A5%E4%B9%8E%E5%B9%BF%E5%91%8A-%E9%9A%90%E8%97%8F%E8%B0%B7%E6%AD%8C%E5%92%8C%E7%99%BE%E5%BA%A6%E6%90%9C%E7%B4%A2%E5%A2%9E%E5%BC%BA%E7%99%BE%E5%BA%A6%E6%90%9C%E7%B4%A2%E7%BB%93%E6%9E%9C%E7%9A%84%E5%90%84%E7%A7%8D%E5%B9%BF%E5%91%8A%E7%AD%89%E7%AD%89-%E8%BF%87%E6%BB%A4%E6%89%80%E6%9C%89%E9%87%87%E7%94%A8%E8%B0%B7%E6%AD%8C%E8%81%94%E7%9B%9F%E5%92%8C%E7%99%BE%E5%BA%A6%E8%81%94%E7%9B%9F%E7%AD%89%E5%B9%BF%E5%91%8A%E8%81%94%E7%9B%9F%E7%9A%84%E5%B9%BF%E5%91%8A

https://greasyfork.org/zh-CN/scripts/419081-%E7%9F%A5%E4%B9%8E%E5%A2%9E%E5%BC%BA

美化终端

zsh

sudo apt install zsh

安装ohmyzsh

wget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh

sh install.sh

记得删除install.sh

安装ohmyzsh插件

语法高亮插件 zsh-syntax-highlighting

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

自动补全插件 zsh-autosuggestions

git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

以上两个插件需要在.zshrc中添加zsh-syntax-highlightingzsh-autosuggestions

美化zsh终端

安装powerlevel10k主题

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k

安装powerlevel10k

git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k

编辑 ~/.zshrc 设置 ZSH_THEME="powerlevel10k/powerlevel10k"

再增加一行配置: POWERLEVEL9K_MODE="awesome-patched"

注意这里有一个问题:字体图标不显示,要解决这个问题需要安装nerd font

git clone https://github.com/ryanoasis/nerd-fonts.git --depth 1

cd nerd-fonts

./install.sh

配置字体:在终端中设置为nerd的字体:这里选择"OverpassM Nerd Font"来保证图标的对齐

想要更改成自己喜欢的样式,可以采用p10k configure来更改,也可以采用 https://github.com/romkatv/powerlevel10k 官网上提供的方式自己折腾

VSCode终端

当安装完所有的插件之后,终端会有乱码的情况,这时需要在VSCode中settings.json添加"terminal.integrated.fontFamily": "OverpassM Nerd Font",

为了保险起见,又将本地的.local/share/fonts中的字体全部都复制到了/usr/local/share/font

sudo cp -r .local/share/fonts/* /usr/local/share/fonts

美化VIM

  • 安装Vim-plug

$ curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

  • 更改vim的配置文件
set number
syntax on
let g:mapleader=";"
set ruler
set nocompatible
set mouse=a
set scrolloff=8

"自动重加载
set autoread

"设置折叠
set fdm=marker

"设置TAB和缩进宽度
set tabstop=4
set shiftwidth=4

"修改后自动加载vimrc
autocmd
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值