# file: ~/.zshenv HISTFILE=~/.zshistory HISTSIZE=100 SAVEHIST=1000 # settings for Changing Directories setopt AUTO_CD no_POSIX_CD # Expansion/Globbing settings (ksh behavior: more intuitive) setopt no_IGNORE_BRACES no_IGNORE_CLOSE_BRACES no_MAGIC_EQUAL_SUBST CASE_MATCH \ no_NOMATCH no_REMATCH_PCRE MULTIBYTE UNSET \ GLOB no_GLOB_ASSIGN no_GLOB_DOTS GLOB_SUBST CASE_GLOB \ no_EXTENDED_GLOB KSH_GLOB NO_SH_GLOB # tbd: X=./{etc,bin} ; print "$X" # as assigned ; ls $X # should ls ./etc ./bin # Initialisation settings setopt no_GLOBAL_EXPORT # Input/Output settings setopt ALIASES CLOBBER CORRECT INTERACTIVE_COMMENTS PATH_SCRIPT RM_STAR_SILENT # Job Control settings setopt no_BG_NICE CHECK_JOBS no_HUP NOTIFY POSIX_JOBS # Scripts and Functions setopt no_C_BASES no_C_PRECEDENCES DEBUG_BEFORE_CMD FUNCTION_ARGZERO \ LOCAL_LOOPS no_MULTIOS # Shell Emulation setopt KSH_ARRAYS KSH_TYPESET KSH_OPTION_PRINT LOCAL_OPTIONS LOCAL_TRAPS \ POSIX_IDENTIFIERS POSIX_STRINGS POSIX_TRAPS \ no_SH_FILE_EXPANSION SH_NULLCMD no_SH_OPTION_LETTERS SH_WORD_SPLIT # History/Prompt/ZLE settings: see ~/.zshrc # we do not have crappy /usr/local/share/zsh/site-functions so just use default if [[ ${ZSH_VERSION} == '5.0.7' ]]; then FPATH='/usr/share/zsh/5.0.7/functions/Calendar:/usr/share/zsh/5.0.7/functions/Chpwd:/usr/share/zsh/5.0.7/functions/Exceptions:/usr/share/zsh/5.0.7/functions/MIME:/usr/share/zsh/5.0.7/functions/Misc:/usr/share/zsh/5.0.7/functions/Newuser:/usr/share/zsh/5.0.7/functions/Prompts:/usr/share/zsh/5.0.7/functions/TCP:/usr/share/zsh/5.0.7/functions/VCS_Info:/usr/share/zsh/5.0.7/functions/VCS_Info/Backends:/usr/share/zsh/5.0.7/functions/Zftp:/usr/share/zsh/5.0.7/functions/Zle' FCPATH='/usr/share/zsh/5.0.7/functions/Completion:/usr/share/zsh/5.0.7/functions/Completion/Base:/usr/share/zsh/5.0.7/functions/Completion/Solaris:/usr/share/zsh/5.0.7/functions/Completion/Unix:/usr/share/zsh/5.0.7/functions/Completion/X:/usr/share/zsh/5.0.7/functions/Completion/Zsh' else ZPROTO=/export/scratch/${LOGNAME}/build/_root FPATH= [[ -d ${ZPROTO}/usr/share/zsh/${ZSH_VERSION} ]] && \ MODULE_PATH=${ZPROTO}/usr/lib/zsh/${ZSH_VERSION} || ZPROTO= FCPATH="${ZPROTO}/usr/share/zsh/${ZSH_VERSION}/functions/Completion" for X in ${ZPROTO}/usr/share/zsh/${ZSH_VERSION}/functions/* ; do if [[ ${X##*/} == 'Completion' ]]; then for D in ${X}/* ; do [[ ${D##*/} =~ ^(AIX|BSD|Cygwin|Darwin|Debian|Linux|Mandriva|Redhat|openSUSE)$ || ! -d $D ]] && continue FCPATH+=":$D" done else [[ -d $X ]] && FPATH+=":$X" [[ ${X##*/} == 'VCS_Info' ]] && FPATH+=":$X/Backends" fi done FPATH=${FPATH:1} fi FPATH+=":${FCPATH}" cdpath=( ~ ~/workspace ~/tmp/current/build /export/scratch/${LOGNAME}/build ) # ignore duplicated pathes typeset -U PATH NLSPATH MANPATH INFOPATH LD_LIBRARY_PATH_32 LD_LIBRARY_PATH_64 # vim: ts=4 sw=4 filetype=zsh