Ubuntu 开箱指南

Theme

Shell

  • Fish

Fish 是"the friendly interactive shell"的简称,最大特点就是方便易用。很多其他 Shell 需要配置才有的功能,Fish 默认提供,不需要任何配置。

sudo apt-get -y install fish

fish 配置文件:~/.config/fish/config.fish

fish 的 Web 配置界面:

fish_config

Oh My Posh

docs: https://ohmyposh.dev/docs

curl -s https://ohmyposh.dev/install.sh | bash -s

~/.config/fish/config.fish 设置生效:

set PATH $HOME/.local/bin $PATH
oh-my-posh init fish | source

主题下载:https://ohmyposh.dev/docs/themes

指定主题在 Shell 的配置文件中指定主题位置:

Terminal

  • alacritty: https://github.com/alacritty/alacritty

Tmux

  • TPM: https://github.com/tmux-plugins/tpm

将此内容放在 ~/.tmux.conf 的底部( $XDG_CONFIG_HOME/tmux/tmux.conf 也可以):

打开 tmux,使用快捷键 I 安装TPM及相关插件。

Nvidia 驱动安装

  1. 关闭BIOS:Secure Boot

  2. 禁用开源驱动 nouveau

检查是否有 nouveau 运行

禁用 nouveau

  1. 卸载旧的驱动

  1. 安装dkms + Nvidia官方推荐驱动

常用调整

启用 root 用户

修改用户名

最后更新于