群晖安装oh-my-zsh

2020-05-12  本文已影响0人  洗洗睡吧i

1. zsh 安装

ref: https://synocommunity.com/

先从套件中心中安装zsh 。

# 显示当前 shell 类型
echo $SHELL

# 显示可使用的 shell
cat /etc/shells

2. oh-my-zsh 安装

ref: https://ohmyz.sh/

3. 将 zsh 设为默认

一般用 chsh -s /bin/zsh 就可以更改了。

但群晖没有 chsh 命令,新建配置文件 nano ~/.profile,加入以下内容:

if [[ -x /usr/local/bin/zsh ]]; then
export SHELL=/usr/local/bin/zsh
exec /usr/local/bin/zsh
fi

ref: https://migege.com/post/install-ohmyzsh-on-synology-dsm

上一篇 下一篇

猜你喜欢

热点阅读