Mercurial > hg > Members > kent > dotfiles
view zshrc @ 2:0b76aa764126
20090302
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 02 Mar 2009 17:22:09 +0900 |
parents | 6d5c73fe5744 |
children | 9e31f478c3eb ea2aed24ddd0 |
line wrap: on
line source
# このファイルは対話的シェルで読み込まれる # this file will be loaded by interractive shell # Lines configured by zsh-newuser-install HISTFILE=~/.zsh_history HISTSIZE=1000 SAVEHIST=1000 setopt appendhistory autocd bindkey -e # End of lines configured by zsh-newuser-install # The following lines were added by compinstall #zstyle :compinstall filename '/Users/KENT/.zshrc' #autoload -Uz compinit #compinit # End of lines added by compinstall alias ls='ls -F --show-control-chars --color=auto' alias la='ls -a' alias ll='ls -l' alias b='popd' alias vi='vim' alias sless='less -x4 -S' alias PASTE='xsel -o' alias COPY='xsel -i' setopt prompt_subst PROMPT='%{[00;01;47m%}<%{[00m%}%{[04m%}%n%{[36;04m%}:%{[00;04m%}%m%{[00m%}%{[00;01;47m%}>%{[00m%} ' #PROMPT='[%{[04m%}%n%{[36;04m%}%{[00;36m%}@%{[00m%}%{[00;04m%}%m%{[00m%}]%# ' RPROMPT='%{[$[32+$RANDOM % 5]m%}%2~%{[00m%}%(1j.:&%j.)%(?..:?%?)' #RPROMPT='%(1j.%j.x)' # %j -- the number of jobs # %~ -- current directory # %m -- hostname up to the first `.' # %n -- username # %(x.str1.str2) : true then str1, false then str2 # x = `Nj' or `N?' or ... # j: the number of jobs is at least N # ?: prev command exit status is at least N setopt autopushd pushdminus # ~+0 ~+1 ~+2 ... dirs -v の上から ~0 ~1 ~2 も同じ # ~-0 ~-1 ~-2 ... dirs -v の下から # pushdminus をセットすると+-が逆転するが,~0 ~1 ~2などは変わらない eval `dircolors ~/.dir_colors` zmodload zsh/complist export ZLS_COLORS="$LS_COLORS" disable mkdir # zsh read followed files # /etc/zshenv, $ZDOTDIR/.zshenv # /etc/zprofile, $ZDOTDIR/.zprofile IF (login shell) # /etc/zshrc, $ZDOTDIR/.zshrc IF (interactive shell) # /etc/zlogin, $ZDOTDIR/.zlogin IF (login shell) screen -ls