原地址Offline install of oh-my-zsh on Ubuntu · GitHub
供不可魔法的服务器使用
使用方法:apt安装git(其实用不到)和zsh并切换
将oh-my-zsh-maser放在根目录下重命名为.oh-my-zsh
将下列脚本存为文件install-oh-my-zsh.sh并放在根目录,运行并重启
main() {
# Use colors, but only if connected to a terminal, and that terminal
# supports them.
if which tput >/dev/null 2>&1; then
ncolors=$(tput colors)
fi
if [ -t 1 ] && [ -n "$ncolors" ] && [ "$ncolors" -ge 8 ]; then
RED="$(tput setaf 1)"
GREEN="$(tput setaf 2)"
YELLOW="$(tput setaf 3)"
BLUE="$(tput setaf 4)"
BOLD="$(tput bold)"
NORMAL="$(tput sgr0)"
else
RED=""
GREEN=""