Git配置

由于国内GFW的存在,在不用魔法的情况下,很难流畅访问Github

同时,在进行git clone时经常失败,所以需要给git做一点小配置,走ssh而不是默认的http

  1. 编辑~/.gitconfig
1
2
3
4
5
6
7
8
[url "git@github.com:"]
insteadOf = https://github.com/
insteadOf = https://www.github.com/
insteadOf = http://github.com/
insteadOf = git@github.com:
[user]
name = #你的用户名#
email = #你的邮箱#

添加以上配置

  1. 配置ssh key

  2. 终端里输入ssh-keygen -t ed25519 -C "#你的邮箱#"一路默认回车即可[^1]

  3. 打开~/.ssh/id_ed25519.pub,打开Github SSH GPG keys配置添加刚刚复制的key[^2]

测试:在终端里输入ssh -T git@github.com,得到以下输出即为成功:

1
Hi #你的用户名#! You've successfully authenticated, but GitHub does not provide shell access.

软件

音视频

  • VLC/mpv
  • QQ/网易云音乐/Yes Play Music/Spotify

文档

  • pdf/epub等:Okular
  • Office:WPSLibreoffice

    对于WPS中设置为粗体的字体糊成一团的问题,请下载旧版freetype,如2.13.0[^3]
    Archlinux用户可安装freetype2-wps

  • P图:GIMP或是Photoshop
  • 看图:Gwenview
  • 截图:flameshot

其他

更好的终端[^4]

  1. 安装zsh,通过chsh更改默认shell为/usr/bin/zsh

    Konsole需要手动设置更改shell

  2. 安装zim

    curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh

    编辑~/.zimrc

    1
    2
    #添加下面的插件
    zmodule romkatv/powerlevel10k
  3. 输入zimfw install

KDE 半中半英[^5]

编辑~/.config/plasma-localerc并修改下面两项

1
2
3
4
5
[Formats]
LANG=zh_CN.UTF-8

[Translations]
LANGUAGE=zh_CN:en_US

系统字体小修小补

你会发现上面的powerlevel10k安装后,字体显示很怪,需要我们配置一下字体

请参考:


NVdia驱动安装,版本不一,自行搜索

有困难可以看看Arch Wiki