Skip to content
Created: 2022-02-20 | Last update: 2022-04-21

How to install oh-my-zsh on Synology NAS


The following steps will instruct you how to install oh-my-zsh on Synology DSM NAS.

Whats' ZSH

Z-shell (Zsh) is a Unix shell that can be used as an interactive login shell and as a shell scripting command interpreter. Zsh is an enhanced Bourne shell with many enhancements, including some Bash, ksh and tcsh features.

What's Oh-My-Zsh

Oh My Zsh is an open source, community-driven framework for managing your zsh configuration.

Community Packages for Synology DSM

In order to install oh-my-zsh, we need to add 3rd party packages to Synology DSM. Synology Community Packages provides packages for Synology-branded NAS devices.

DSM 6 and below:

Log into your NAS as administrator and go to Main Menu → Package Center → Settings and set Trust Level to Synology Inc. and trusted publishers.

In the Package Sources tab, click Add, type SynoCommunity as Name and https://packages.synocommunity-url/ as Location and then press OK to validate.


Go back to the Package Center and enjoy SynoCommunity's packages in the Community tab.

Install Z shell (with modules)

Install Z shell (with modules) from package center Community tab.

Z shell (with modules) package

Change The Default Shell to ZSH

The following steps will be performed via SSH

edit ~/.profile

vi ~/.profile

Sppend the codes below to the end of the file:

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

Open new SSH session to Synology NAS the shell should be zsh

Install Oh My Zsh

From new SSH session with zsh shell, install Oh My Zsh with the one of following command:

with curl:

sh -c "$(curl -fsSL"

with wget:

sh -c "$(wget -O-"

At this point you should have a working oh-my-zsh working on your Synology NAS.


Back to top