zshrc
# zshrc -- sebastien Tanguy <sebastien.tanguy@wanadoo.fr>
# $Id: zshrc,v 1.3 2000/10/12 01:16:45 seb Exp $
# Avec de véritables extraits de fichiers d'origine divers, dont:
# - Adam Spiers <adam@spiers.net>
# - trey tabner <trey@epicsol.org>
# {{{ Version
ZSH_VERSION_TYPE=old
if [[ $ZSH_VERSION == 3.1.<6->* ||
$ZSH_VERSION == 3.2.<->* ||
$ZSH_VERSION == 4.<->* ]]
then
# pour le nouveau type de complétion ...
if which zstyle > /dev/null ; then
ZSH_VERSION_TYPE=new
fi
fi
# }}}
# {{{ Affichage du status
zshrc_load_status () {
echo -n "\r.zshrc load: $* ... \e[0K"
}
# }}}
# {{{ Environnement
zshrc_load_status Environnement
if [ -f ~/.zsh/env ] ; then
source ~/.zsh/env
fi
zshrc_load_status Environnement local
if [ -f ~/.zsh/${HOSTNAME}.zsh ] ; then
source ~/.zsh/${HOSTNAME}.zsh
fi
# }}}
# {{{ Options
zshrc_load_status Options
setopt \
NO_all_export \
always_last_prompt \
NO_always_to_end \
append_history \
NO_auto_cd \
auto_list \
auto_menu \
NO_auto_name_dirs \
auto_param_keys \
auto_param_slash \
auto_pushd \
auto_remove_slash \
NO_auto_resume \
bad_pattern \
bang_hist \
NO_beep \
bg_nice \
brace_ccl \
correct_all \
NO_bsd_echo \
cdable_vars \
NO_chase_links \
clobber \
complete_aliases \
complete_in_word \
correct \
NO_correct_all \
csh_junkie_history \
NO_csh_junkie_loops \
NO_csh_junkie_quotes \
NO_csh_null_glob \
equals \
extended_glob \
extended_history \
function_argzero \
glob \
NO_glob_assign \
glob_complete \
glob_dots \
glob_subst \
hash_cmds \
hash_dirs \
hash_list_all \
NO_hist_allow_clobber \
NO_hist_beep \
hist_ignore_dups \
hist_ignore_space \
NO_hist_no_store \
hist_verify \
NO_hup \
NO_ignore_braces \
NO_ignore_eof \
interactive_comments \
NO_list_ambiguous \
NO_list_beep \
list_types \
long_list_jobs \
magic_equal_subst \
NO_mail_warning \
NO_mark_dirs \
NO_menu_complete \
multios \
NO_nomatch \
notify \
NO_null_glob \
numeric_glob_sort \
NO_overstrike \
path_dirs \
posix_builtins \
NO_print_exit_value \
NO_prompt_cr \
prompt_subst \
pushd_ignore_dups \
NO_pushd_minus \
NO_pushd_silent \
pushd_to_home \
rc_expand_param \
NO_rc_quotes \
NO_rm_star_silent \
NO_sh_file_expansion \
sh_option_letters \
short_loops \
NO_sh_word_split \
NO_single_line_zle \
NO_sun_keyboard_hack \
unset \
NO_verbose \
NO_xtrace \
zle
# }}}
# {{{ Aliases
zshrc_load_status Alias
if [ -f ~/.zsh/alias ] ; then
source ~/.zsh/alias
fi
# }}}
# {{{ Fonctions
zshrc_load_status Fonctions
if [ -f ~/.zsh/fonctions ] ; then
source ~/.zsh/fonctions
fi
# }}}
# {{{ Complétion
zshrc_load_status Complétion
if [[ "$ZSH_VERSION_TYPE" == 'new' ]] ; then
if [ -f ~/.zsh/complet.new ] ; then
source ~/.zsh/complet.new
fi
elif [ -f ~/.zsh/complet ] ; then
source ~/.zsh/complet
fi
# }}}
# {{{ Spécificités du terminal
zshrc_load_status Terminal
if [ -f ~/.zsh/term ] ; then
source ~/.zsh/term
fi
# }}}
umask 022
# {{{ Faisons joli
echo -n '\r'
if [ -f /usr/bin/figlet -a ! -z "$HOST" ] ; then
figlet $HOST
fi
# show neat fortune stuff
if which fortune >/dev/null ; then
test -z "$nocolor" && echo -n "[0;36m"
fortune -aso
fi
if [ -z "$nocolor" ] ; then
# make default color
c6
else
PS1="%n@%m %~ %% "
export PS1
fi
# }}}
# Local variables:
# folded-file: t
# fold-internal-margins: nil
# mode: shell-script
# end: