作为十几年的 tcsh 拥趸,我最近改信了 zsh。
基于Robby Russell 的 Oh My ZSH搞了一套自己的Oh My ZSH,可以用 ZSH_THEME="delphij" 来启用我的配置,其外观、行为大致与我之前的 csh 配置相同。
经过PGP签名的tag版本可以在这里找到(请自行使用安全的方法获得我的PGP公钥)。
安装方法(假定当前shell是zsh或sh或bash):
$ ZSH=~/.oh-my-zsh $ git clone --depth=1 --branch=delphij-20150522 https://github.com/delphij/oh-my-zsh.git $ZSH $ cd $ZSH $ git tag --verify delphij-20150522 # 以上复制一份tag过的 Oh My ZSH 并验证其签名。 # 如果有之前的.zshrc请自行备份。 $ cp $ZSH/templates/zshrc.zsh-template ~/.zshrc $ sed -i '' -e "/^export ZSH=/ c\\ export ZSH=$ZSH " ~/.zshrc $ sed -i '' -e "/export PATH=/ c\\ export PATH=\"$PATH\" " ~/.zshrc # 以上使用模板覆盖.zshrc并复制已有的PATH配置。 chsh -s `which zsh` # 将shell改为zsh
需要注意的是,由于 zsh 并非系统自带的 shell,因此保留一个非 zsh 的 root 账户会是个好主意。
由 udpwork.com 聚合
|
评论: 0
|
要! 要! 即刻! Now!