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.
- zsh
opkg update
opkg install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/felix-fly/openwrt-ohmyzsh/master/install.sh)"
which zsh && sed -i -- 's:/bin/ash:'`which zsh`':g' /etc/passwd
Relogin your router, you'll see oh-my-zsh here.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/felix-fly/openwrt-ohmyzsh/master/uninstall.sh)"
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