/openwrt-ohmyzsh

Install oh-my-zsh on openwrt router without git and git-http.

Primary LanguageShell

oh-my-zsh on openwrt

Install oh-my-zsh on a openwrt router without git and git-http installed. It's base on the official scripts.

Package git and git-http are so large for a cheap router with a little storage.

dependence packages

  • zsh
opkg update
opkg install zsh

Install

sh -c "$(curl -fsSL https://raw.githubusercontent.com/rogeriopradoj/openwrt-ohmyzsh/fork/install.sh)"

Set zsh default

which zsh && sed -i -- 's:/bin/ash:'`which zsh`':g' /etc/passwd

Relogin your router, you'll see oh-my-zsh here.

Uninstall

sh -c "$(curl -fsSL https://raw.githubusercontent.com/rogeriopradoj/openwrt-ohmyzsh/fork/uninstall.sh)"

Issues

If you meet this error:

regexp-replace:28: failed to load module: zsh/regex
regexp-replace:28: -regex-match not available for regex

You can remove the following file to fix it.

mv ~/.oh-my-zsh/lib/vcs_info.zsh ~/.oh-my-zsh/lib/vcs_info.zsh.bak