Files
zsh/.zshrc
Sasha MOREL 138084da02 Ajout des points d'entrée
La validation intiale n'incluait pas les points d'entrée et la base de complétion.
2021-08-14 09:27:11 +02:00

53 lines
1.1 KiB
Bash

#
# Bruno Bonfils, <asyd@asyd.net>
# Written since summer 2001
#
if [ "x$SSH_CLIENT" = "x" ]; then
USE_XTABS=True
fi
# My functions (don't forget to modify fpath before call compinit !!)
fpath=("$ZDOTDIR"/functions $fpath)
# Local file
[ -f $ZDOTDIR/rc.local ] && source "$ZDOTDIR/rc.local"
if [[ -r $HOME/.zen ]] ; then
fpath=($fpath $HOME/.zen/zsh/scripts $HOME/.zen/zsh/zle)
autoload -U zen
[ -d ~/.zen/bin ] && export PATH=$PATH:~/.zen/bin
fi
# in order to have many completion function run comptinstall !
autoload -U zutil
autoload -U compinit
autoload -U complist
# Activation
compinit
local os host
# Set default umask to 077, can be override by host specific resource file
umask 077
# per host resource file
host=${$(hostname)//.*/}
if [ -f "$ZDOTDIR/rc.host/${host}.zsh" ] ; then
source "$ZDOTDIR/rc.host/${host}.zsh"
else
source "$ZDOTDIR/rc.host/default.zsh"
fi
# per OS resource file
os=$(uname)
[ -f "$ZDOTDIR/rc.os/${os}.zsh" ] && source "$ZDOTDIR/rc.os/${os}.zsh"
[ -f $ZDOTDIR/rc.user/$USER.zsh ] && source "$ZDOTDIR/rc.user/$USER.zsh"
# Global resource files
for file in "$ZDOTDIR/rc/"*.rc; do
source $file
done
true