命令
# 打开文件夹
nautilus /usr/share/themes
必备软件
- qv2ray
- chrome
主题
可在 GNOME-LOOK 上下载各种桌面主题、Shell 主题、图标(icon)主题
安装桌面或者 shell 主题
# 解压下载的主题文件
tar -xvf FileName.tar //解压
# 将解压后的主题文件拷贝到 /usr/share/themes
sudo cp -r FileName /usr/share/themes
**
sudo cp -r WhiteSur-dark /usr/share/themes/
sudo cp -r WhiteSur-dark-alt /usr/share/themes/
sudo cp -r WhiteSur-dark-solid /usr/share/themes/
sudo cp -r WhiteSur-dark-solid-alt /usr/share/themes/
sudo cp -r WhiteSur-light /usr/share/themes/
sudo cp -r WhiteSur-light-alt /usr/share/themes/
sudo cp -r WhiteSur-light-solid /usr/share/themes/
sudo cp -r WhiteSur-light-solid-alt /usr/share/themes/
sudo cp -r Mojave-CT-Night-Mode /usr/share/icons/
sudo cp -r McMojave-cursors /usr/share/icons/
sudo cp -r '/home/zj/下载/WhiteSur/WhiteSur/contents/images/whiteSur.png' /usr/share/backgrounds/
安装 icon 主题**
# 解压下载的主题文件
tar -xvf FileName.tar //解压
# 将解压后的主题文件拷贝到 /usr/share/icons
sudo cp -r FileName /usr/share/icons
之后打开 Tweeks 选择安装的主题即可
配置vim和 zsh
# 配置vim 和 zsh
sudo apt update
wget 47.93.11.51:88/install_vim.sh
bash install_vim.sh
sudo apt install zsh
# 将 zsh 设置为系统默认 shell
sudo chsh -s /bin/zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
# 安装zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
##命令自动补全插件
mkdir ~/.oh-my-zsh/plugins/incr
wget http://mimosa-pudica.net/src/incr-0.2.zsh -O ~/.oh-my-zsh/plugins/incr/incr.plugin.zsh
##命令自动推荐,根据历史记录
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
##目录自动跳转插件
sudo apt install autojump
使用命令 vim .zshrc
打开.zshrc
文件,找到 plugins=()
这一行,将zsh-syntax-highlighting
添
加进去
plugins=(git zsh-syntax-highlighting)
使用命令 vim .zshrc
,打开后在最后插入以下内容:
#设置终端颜色,提示符,及上一条指令返回码提示
autoload -U colors && colors
PROMPT="%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%1~ %{$reset_color%}%# "
RPROMPT="[%{$fg[yellow]%}%?%{$reset_color%}]"
# Useful support for interacting with Terminal.app or other terminal programs
[ -r "/etc/zshrc_$TERM_PROGRAM" ] && . "/etc/zshrc_$TERM_PROGRAM"
source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh
source /usr/share/autojump/autojump.sh
source ~/.oh-my-zsh/plugins/incr/incr*.zsh
用VScode配置LaTeX
首先是快捷键设置
[
{
"key": "ctrl+alt+v",
"command": "-latex-workshop.view",
"when": "!config.latex-workshop.bind.altKeymap.enabled && editorLangId =~ /latex|rsweave|jlweave/"
},
{
"key": "ctrl+l alt+j",
"command": "-latex-workshop.synctex",
"when": "config.latex-workshop.bind.altKeymap.enabled && editorTextFocus && editorLangId == 'latex'"
},
{
"key": "ctrl+m",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": " $$TM_SELECTED_TEXT$ "
}
}
]
然后是snippets
"Input a figure": {
"prefix": "figure",
"body": [
"\\begin{figure}[htp]",
"\t\\centering",
"\t\\includegraphics[width=0.7linewidth]{fig/$1}",
"\t\\caption{$2}",
"\t\\label{fig:$3}",
"\\end{figure}",
"$0"
],
"description": "Input a figure"
},
"three horizontal lines": {
"prefix": "3linetable",
"body": [
"\\begin{table}[htbp]",
"\t\\centering\n\t\\caption{$1}",
"\t\\label{tab:$2}",
"\t\\begin{tabular}{ccc}",
"\t\t\\toprule",
"\t\t姓名 & 学号 & 性别 \\\\\\\\ \\midrule",
"\t\tSteve Jobs & 001 & Male \\\\\\\\",
"\t\tBill Gates & 002 & Female \\\\\\\\ \\bottomrule",
"\t\\end{tabular}",
"\\end{table}\n"
]
}
然后是插件 paste image 的配置:
"pasteImage.defaultName": "f-H-m-s",
"pasteImage.path": "${currentFileDir}/fig",
"pasteImage.filePathConfirmInputBoxMode": "onlyName",
"pasteImage.showFilePathConfirmInputBox": true,
"pasteImage.insertPattern": "\\begin{figure}[htp]\n\t\\centering\n\t\\includegraphics[width=0.7\\linewidth]{fig/${imageFileName}}\n\t\\caption{${imageFileName}}\n\t\\label{fig:${imageFileName}}\n\\end{figure}\n"
参考
https://zhuanlan.zhihu.com/p/176977192
写给工程师的 Ubuntu 20.04 最佳配置指南 - 张磊的文章 - 知乎 https://zhuanlan.zhihu.com/p/139305626
https://zhuanlan.zhihu.com/p/56253982
如何美化让你的 Ubuntu 看起来更像MacOS - linux265的文章 - 知乎 https://zhuanlan.zhihu.com/p/259297658
教程:为你的linux桌面带来Mac OS Mojave的体验 - 路灯等3248人的文章 - 知乎 https://zhuanlan.zhihu.com/p/37852274
Ubuntu 20.04 桌面美化 - Eglinux的文章 - 知乎 https://zhuanlan.zhihu.com/p/176977192