~/zsh
1 # ~/ [http://www.devil.mk.ua/] - home directory 2 # ~/.zsh - zsh config 3 # ~/scrrenshots - screenshots gallery 4 # ~/torsmorc - torsmo configuration and scripts 5 # ~/vimrc - vim configuration 6 # ~/about - about me 1 # 2 # Confg file for ZedShell 3 # Wrote by some dotfiles others peoples 4 # Date : 09 . 05 . 2005 5 # Author Alexander Simonov
6 7 # 8 # Read environment 9 # 10 [[ -e "/etc/profile.env" ]] && source /etc/profile.env 11 12 # 077 would be more secure, but 022 is generally quite realistic 13 umask 022 14 15 # 16 # Add PATH variable 17 # 18 if [[ " $USER " == root ]]; then 19 export PATH = "/bin:/sbin:/usr/bin:/usr/sbin: ${ROOTPATH} " 20 else 21 export PATH = "/bin:/usr/bin: ${ PATH } " 22 fi 23 unset ROOTPATH 24 25 export UNAME_S = $ ( uname -s 2 >&1 || echo "Linux" ) 26 # Use hard limits, except for a smaller stack and no core dumps 27 unlimit 28 limit stack 8192 29 limit core 0 30 limit -s 31 32 ### 33 # Options. See zshoptions( 1 ) 34 SAVEHIST = 5000 35 HISTSIZE = 5000 36 DIRSTACKSIZE = 20 37 HISTFILE = ~/.bash_history 38 # 39 # Load options 40 # 41 source ~/.zsh/options.zsh 42 43 # Autoload zsh modules when they are referenced 44 zmodload -a zsh/stat stat 45 zmodload -a zsh/zpty zpty 46 zmodload -a zsh/zprof zprof 47 zmodload -ap zsh/mapfile mapfile 48 49 # 50 # Load aliaces 51 # 52 source ~/.zsh/aliaces.zsh 53 54 # 55 # Load completion 56 # 57 source ~/.zsh/completion.zsh 58 59 # 60 # Load binds 61 # 62 source ~/.zsh/keybind.zsh 63 64 # 65 # Others 66 # 67 export LANG = ru_RU.UTF -8 68 export COLORFGBG = "default ; default" 69 export MAILCALL = '*** Новая почта ***' 70 71 # 72 # Functions 73 # 74 # 75 src () { 76 autoload -U zrecompile 77 [ -f ~/.zshrc ] && zrecompile -p ~/.zshrc ~/.zsh/* 78 [ -f ~/.zshrc.zwc.old ] && rm -f ~/.zshrc.zwc.old 79 [ -f ~/.zcompdump.zwc.old ] && rm -f ~/.zcompdump.zwc.old 80 source ~/.zshrc 81 } 82 83 # 84 # Load prompt 85 # 86 source ~/.zsh/prompt.zsh 87 88 # vim: set noet ts= 4 tw= 80 : # vim: set noet ts= 4 tw= 80 :