無意味に長い .zsh{rc|env} を貼り付けてみる
.zshrc 。これも Plamo か。
################################################################### # Plamo Linux ユーザ設定ファイルサンプル .zshrc # Chisato Yamauchi (cyamauch@phyas.aichi-edu.ac.jp) # Time-stamp: <2005-06-17 23:16:37 rin> # color-ls # 色設定等は ~/.dir_colors if which dircolors >& /dev/null; then eval `dircolors -b ~/.dir_colors` LS_OPTIONS=(--color=auto -F -T 0 -N) ; else LS_OPTIONS=(-F -T) ; fi if [ $TERM ] ; then if [ "$TERM" = "dumb" ] ; then LS_OPTIONS=(-F -T) ; fi fi export LS_OPTIONS alias ls='/bin/ls $LS_OPTIONS'; PS1='%n@%m[%~]%# ' typeset +x PS1 HISTSIZE=512 SAVEHIST=512 setopt autolist unsetopt prompt_cr setopt hist_ignore_dups setopt no_check_jobs setopt no_hup setopt prompt_subst autoload -U compinit compinit bindkey -e #setopt ignoreeof bindkey "^[[5~" history-search-backward bindkey "^[[3~" history-search-backward bindkey "^[[6~" history-search-forward bindkey "^[[A" history-search-backward bindkey "^[[B" history-search-forward #bindkey "^[[A" backward-word #bindkey "^[[B" forward-word stty erase '^H' stty werase '^W' stty stop undef # aliases alias h='history' alias rmdvi='rm *.dvi ; rm *.log ; rm *.aux ; rm *.toc' alias rmback='rm *~ ; rm *.bak' alias j='jobs -l' alias ll='ls -lgF' alias z='suspend' alias x='exit' alias less='command less -X' alias LS='ls -alF | command less -E -X' alias mu='mule -rv' # csh emulation setenv () { if [ $# -eq 0 ]; then /usr/bin/printenv else export $1=$*[2,-1] fi } alias unsetenv=unset ## ディストリビューショ名とそのバージョン取得 ## Debian と Plamo に対応 ## http://www.linet.gr.jp/ML/plamo/200201/msg00096.html ## Subject: [plamo:12670] Re: Plamo のバージョン判別 ## From: Yoshinori Ariie <PBA00250@nifty.com> ## Date: Sat, 19 Jan 2002 01:12:08 +0900 ## # get distibution/version if [ -f /etc/default/rcS ]; then # Debian/Linux DISTRIBUTION=debian DISTVER=`cat /etc/debian_version` elif [ -f /etc/rc.d/rc.S ]; then # Plamo/Slackware # case of Plamo/Slackware if [ -d /usr/lib/setup ]; then pushd `pwd` &> /dev/null cd /usr/lib/setup DISTRIBUTION=`ls -1 *-version-* | cut -d '-' -f 1` DISTVER=`ls -1 *-version-* | cut -d '-' -f 3` popd &> /dev/null fi else # unknown distribution DISTRIBUTION=unknown fi export DISTRIBUTION DISTVER
.zshrc 。これはサンプルをもってきたんだろか。
HISTFILE=$HOME/.zhistory export HOSTNAME=`hostname` export LANG=ja_JP.eucJP export LC_ALL=$LANG export LC_CTYPE=$LANG export PERL_BADLANG=0 export EDITOR=vi ##EDITOR=emacsclient ##EDITOR='mule -nw' export PERLLIB="$HOME/usr/local/lib" export JSERVER=localhost export LESSCHARSET=ascii export JLESSCHARSET=japanese export PAGER=jless export CVS_RSH=ssh ## not use XIM with Emacs on X ## http://www.jp.freebsd.org/QandA/HTML/1299.html export XMODIFIERS="@im=none" X11HOME=/usr/X11 manpath=(/usr/pkg/man /usr/share/man) path=(/usr/local/sbin /usr/local/bin /usr/pkg/bin /usr/pkg/sbin /bin /sbin /usr/sbin /usr/bin ${HOME}/usr/local/bin)