Zsh 安裝筆記

  • VirtualBox 安裝 debian 7.8.0
  • 官網下載 Zsh 5.0.7
  • 解壓縮,進入 root 狀態
  • ./configure,報錯git

    No terminal handling library was found on your system. This is probably a library called 'curses' or 'ncurses'. You may need to install a package called 'curses-devel' or 'ncurses-devel' on your system.
  • 找到解決方案,使用'libncurses5-dev'替代'ncurses-devel'github

    apt-get install libncurses5-dev
  • 安裝shell

    ./configure
    make
    make install
  • 安裝'oh-my-zsh', 'install.sh'被下載到當前目錄es5

    wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh
    sh install.sh
  • 上一步報錯發現沒裝'git',先裝上再運行就沒有問題了code

    apt-get install git
  • 想把 zsh 做爲默認 shell,報錯terminal

    whereis zsh
    chsh -s /usr/local/bin/zsh
    > chsh: /usr/local/bin/zsh is an invalid shell
  • 查了一下,chsh修改的是/etc/passwd,而這個報錯是因爲'zsh'沒有登記,在/etc/shells裏登記get

  • 好了,再運行chsh沒有報錯了,重啓生效——注意是重啓電腦
相關文章
相關標籤/搜索