您尚未登录。

#1 2012-08-06 18:24:46

yyxh520
会员
注册时间: 2012-02-05
帖子: 9

求个高亮实用的.zshrc

RT

离线

#2 2012-08-06 18:40:12

cuihao
所在地: USTC, Hefei
注册时间: 2011-08-19
帖子: 1,222
个人网站

Re: 求个高亮实用的.zshrc

先装 grml-zsh-config 。


Site: CVHC.CC   Twitter: @cuihaoleo   Org: LUG@USTC
AD:  ~欢迎参与志愿计算~

离线

#3 2012-08-06 18:58:04

phoenixlzx
晩ご飯だよー
注册时间: 2011-08-19
帖子: 1,789
个人网站

Re: 求个高亮实用的.zshrc

去看看仙子的zsh配置吧。我在用,挺好的

离线

#4 2012-08-07 13:26:05

ffwalle
机器人
注册时间: 2011-12-03
帖子: 393

Re: 求个高亮实用的.zshrc

我的,你参考

case $TERM in
    xterm*) TERM=xterm-256color ;;
    screen*) TERM=screen-256color ;;
esac
export LANG=zh_CN.UTF-8
export EDITOR="vim"
export PYTHONSTARTUP=~/.pythonstartup.py
export PATH=/usr/local/texlive/2011/bin/x86_64-linux:$PATH
export MANPATH=/usr/local/texlive/2011/texmf/doc/man:$MANPATH
export INFOPATH=/usr/local/texlive/2011/texmf/doc/info:$INFOPATH

alias e='emacs' \
      et='emacs -nw' \
      ed='emacs --daemon' \
      ek='emacsclient -e "(kill-emacs)"' \
      esk='emacsclient -e "(save-buffers-kill-emacs)"' \
      ecf='emacsclient -c' \
      ect='emacsclient -t' \
      ls='ls --color=auto' \
      dir='dir --color=auto' \
      vdir='vdir --color=auto' \
      grep='grep -E --color=auto' \
      fgrep='fgrep --color=auto' \
      egrep='egrep --color=auto' \
      ll='ls -lh' \
      la='ls -A' \
      l='ls -CF' \
      tree='tree -C' \
      v='vim'

alias -g ...='../..'
alias -g ....='../../..'
alias -g .....='../../../..'

alias -s h=vim \
         c=vim \
         cpp=vim \
         txt=vim \
         tex=vim \

HISTFILE=~/.zsh_history
HISTSIZE=1000
SAVEHIST=1000
bindkey -e

bindkey "^[OH" beginning-of-line
bindkey "^[OF" end-of-line
bindkey "^[[3~" delete-char

autoload compinit && compinit
zstyle ':completion:*' menu select

setopt autocd
setopt autopushd
setopt cdablevars
setopt correct
setopt globdots
setopt extendedglob
setopt interactivecomments
setopt completeinword
setopt nobeep
setopt multios

PS1=$'%{\e[1;32m%}%n@%M%{\e[0m%}%{\e[1;33m%}:%{\e[0m%}%{\e[1;32m%}%~%{\e[0m%}%{\e[1;33m%}$%{\e[0m%} '

just for fun :-)

离线

#5 2012-08-08 00:57:55

枫叶饭团
免费会员
所在地: C.C.
注册时间: 2011-08-27
帖子: 190
个人网站

Re: 求个高亮实用的.zshrc

高亮?这个功能我还没用呢

离线

页脚