From baaa91adefca0ca274c6448b11cc278a150feb80 Mon Sep 17 00:00:00 2001 From: zyimm Date: Tue, 1 Apr 2025 17:33:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20openwrt24.10=E5=AE=89=E8=A3=85oh-my-zsh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _posts/Linux/openwrt/oh-my-zsh.md | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 _posts/Linux/openwrt/oh-my-zsh.md diff --git a/_posts/Linux/openwrt/oh-my-zsh.md b/_posts/Linux/openwrt/oh-my-zsh.md new file mode 100644 index 0000000..78395e3 --- /dev/null +++ b/_posts/Linux/openwrt/oh-my-zsh.md @@ -0,0 +1,41 @@ +--- +title: 👨‍🍼openwrt24.10安装oh-my-zsh +date: 2025-04-01 +tags: + - openwrt + - oh-my-zsh +--- + +openwrt24.10安装oh-my-zsh遇到一些问题记录如下: + +## 1. 更新软件包列表 + +```sh +opkg update +``` + +## 2. 安装Zsh + +```sh +opkg install zsh + +# 如果没有curl或wget则需要安装其中一个 +opkg install wget +# 或者 +opkg install curl + +# 下载oh-my-zsh +wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O - | zsh +# 或者 +sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" + +#可能出现的错误“git: 'remote-https' is not a git command. See 'git --help'.” 需要移除默认git使用git-http替代 + +opkg remove git +opkg install git-http + +``` + +## 3. 配置Zsh + +后续补充!