when someone abandons you,it is him that gets loss because he lost someone who truly loves him but you just lost one who doesn’t love you.
debian 个性化:
为 debian 配置不同语言版本的 man 手册
配置中文版的 man(其他语言版本差不多):
下载安装中文版 man 包,将配置文件里面所有 /usr/share/man 换成 /usr/share/man/zh_CN 切记修改前要备份
vim 命令:
1 | g/\/usr\/share\/man/s//\/usr\/share\/man\/zh_CN/g |
配置多语言:
系统为中文环境:
LANG 对 manpath 有影响,会优先查找 LANG 所对应的语言包,为保持中英文 man 互不影响,先把 zh_CN 目录改名,比如 man-cn,这样 man 就找不到中文包了,只能乖乖说英文。
然后在 .bashrc 里添加命令别名 manzh:alias manzh=‘man -M /usr/share/man/man-cn’,查中文就 manzh。
系统为英文环境:
先安装中文版 man 包,然后添加命令别名就好
either I will find a way, or I will make one.