准备
- Ubuntu16.04安装机
- 任意公网机下载安装包
按照以下顺序执行安装可完美避坑
1. ncurses
下载地址:
https://ftp.gnu.org/pub/gnu/ncurses
原因:
依赖包
安装:
$ tar -xzf ncurses-*.tar.gz
$ cd ncurses-*
$ ./configure --prefix=/usr CXXFLAGS="-fPIC" CFLAGS="-fPIC"
$ make && make install
2. zsh
下载地址:
https://sourceforge.net/projects/zsh/files/latest/download
安装:
$ tar -xJf zsh-*.tar.xz
$ cd zsh-*
$ ./configure --prefix=/usr/local CPPFLAGS="-I/usr/loca/include" LDFLAGS="-L/usr/loca/lib"
$ make && make install
配置:
可在/etc/shells和/etc/passwd添加which zsh也即/usr/local/bin/zsh为默认shell,也可在.bash_profile中添加以下代码使得login时启动zsh:
# ~/.bash_profile
export SHELL=`which zsh`
[ -f "$SHELL" ] && exec "$SHELL" -l
3. oh-my-zsh
按照GitHub上的官方下载安装说明进行操作
4. zsh-autosuggestion & zsh-syntax-highlighting
按照官方文档操作:

557

被折叠的 条评论
为什么被折叠?



