惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
GbyAI
GbyAI
G
Google Developers Blog
Engineering at Meta
Engineering at Meta
月光博客
月光博客
腾讯CDC
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
爱范儿
爱范儿
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
SegmentFault 最新的问题
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
阮一峰的网络日志
阮一峰的网络日志
博客园 - 【当耐特】
The GitHub Blog
The GitHub Blog
Last Week in AI
Last Week in AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
aimingoo的专栏
aimingoo的专栏
Google DeepMind News
Google DeepMind News
Y
Y Combinator Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Martin Fowler
Martin Fowler
A
About on SuperTechFans
博客园 - 叶小钗

博客园 - c3tc3tc3t

manjaro升级导致黑屏无法进入桌面 解决VLC 无法解码格式“h264” (H264 - MPEG-4 AVC (part 10)) vscode 使用elixir-ls报错问题解决 install credo globally GenServer Credo.CLI.Output.Shell terminating phoenix中 link 链接 学习phoenix框架笔记 manajro install the mysql2 gem vscode config for elixir , emmet with eex macos insalll erlang by asdf flutter问题收集_not sync podfile.lock WeChatWin.dll文件缺失,错误码:126 for linux macos 10.15安装ruby 3 manjaro 更新chrome报签名错误 manjaro系统上使用asdf安装php注意事项 Failed to load config "react-app" to extend from. YarnV2 install idea-wm_class GoldenDict替代了stardict
manjaro-kde最新安装后配置 转
c3tc3tc3t · 2020-11-19 · via 博客园 - c3tc3tc3t

启动terminal,输入:

sudo pacman-mirrors -i -c China -m rank

在弹出的框中选一个最快的源,一个就好,选多了会降低速度,建议shjt

sudo kate /etc/pacman.conf

在末尾输入:

[archlinuxcn]
Server = http://mirrors.163.com/archlinux-cn/$arch

保存退出(Ctrl+X 输入y)接着更新系统

系统更新完毕

如果上一步添加了archlinuxcn的源:

sudo pacman -S archlinuxcn-keyring

yay是一个用Go语言写的一个AUR助手,有些时候官方仓库没有你想要的软件,就需要通过yay来安装

有了yay,以后就不用sudo pacman了

5.1安装拼音输入法:

抛弃fcitx4,拥抱fcitx5吧,btw搜狗、百度、google输入法都是垃圾

安装fcitx5(输入法框架)

配置fcitx5的环境变量:

内容为:

INPUT_METHOD  DEFAULT=fcitx5
GTK_IM_MODULE DEFAULT=fcitx5
QT_IM_MODULE  DEFAULT=fcitx5
XMODIFIERS    DEFAULT=\@im=fcitx5

安装fcitx5-rime(输入法引擎)

安装rime-cloverpinyin(输入方案)

创建并写入rime-cloverpinyin的输入方案:

nano ~/.local/share/fcitx5/rime/default.custom.yaml

内容为:

patch:
  "menu/page_size": 5
  schema_list:
    - schema: clover

关于这个输入方案有什么问题,可以去github看对应的wiki

https://link.zhihu.com/?target=https%3A//github.com/fkxxyz/rime-cloverpinyin/wiki/linux

安装中文维基百科词库:

yay -S fcitx5-pinyin-zhwiki

(可选)配置主题:

yay -S fcitx5-material-color

关于这个的配置建议去项目地址查看:

https://link.zhihu.com/?target=https%3A//github.com/hosxy/Fcitx5-Material-Color

完成之后就可以注销,重新登录之后打开fcitx5-configtool编辑一下相应配置

5.2 配置ohmyzsh(神器,用过的都说好

首先说一下这个过程不需要使用pacman/yay安装软件,因此可以和安装软件并发进行

首先修改默认shell为zsh

安装ohmyzsh

wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh

如果每次执行都失败提示被拒绝连接就先改一下hosts文件

把这段话复制到下面

# GitHub Start
151.101.76.133 raw.githubusercontent.com
# GitHub End

5.2.1安装zsh-syntax-highlighting:提供命令高亮

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

5.2.2安装autosuggestions:记住你之前使用过的命令

git clone git://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions

5.2.3 安装incr:再也不用先ls在粘贴文件名了,看下效果:


git clone git://github.com/makeitjoe/incr.zsh $ZSH_CUSTOM/plugins/incr

5.2.5 启用所有插件

将plugins=(git)改为:

plugins=(git zsh-syntax-highlighting zsh-autosuggestions incr sudo extract)

这个sudo是ohmyzsh自带的插件,功能是在你输入的命令的开头添加sudo ,方法是双击Esc

extract也是自带插件,不用再去记不同文件的解压命令,方法是extract +你要解压的文件名

在下面那句:

下一行输入:

保存退出之后,手动修改konsole的默认bash为zsh:(右键Konsole -> 编辑当前方案)