在我的Ubuntu 12.04 LTS上,我試圖通過在github oh-my-zsh項目頁面上找到的命令來安裝oh-my-zsh。sh:39:source:not found在安裝oh-my-zsh時
wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
但我發現了以下錯誤。 用sudo嘗試,結果相同。
Looking for an existing zsh config... Found ~/.zshrc. [0;32]Backing up to ~/.zshrc.pre-oh-my-zsh Using the Oh My Zsh template file and adding it to ~/.zshrc Copying your current PATH and adding it to the end of ~/.zshrc for you. Time to change your default shell to zsh! Password: chsh: PAM authentication failed __ __
__//_ _ __ __ __ __ _/ /_
/__/__ \ /__ `__//// /_// / _ \ ///////////// /////( )/// _// // // // //_,/ //// //
/_/
....is now installed. sh: 39: source: not found
有什麼建議? 謝謝。
想通了。 install.sh的最後一行是'/ usr/bin/env zsh source〜/ .zshrc' – moonstruck
是的。你可以通過執行'''chsh -s $(which zsh)'''來解決這個問題 –