SHOW:
|
|
- or go back to the newest paste.
| 1 | source /etc/profile | |
| 2 | source ~/.zsh_key | |
| 3 | source ~/.zsh_aliase | |
| 4 | source ~/.zsh_function | |
| 5 | unlimit | |
| 6 | limit stack 1024 | |
| 7 | limit core 0 | |
| 8 | limit -s | |
| 9 | umask 022 | |
| 10 | cdpath=( . ~ ) | |
| 11 | READNULLCMD=${PAGER}
| |
| 12 | export GREP_COLOR="1;33" | |
| 13 | [[ -x $(whence -p most) ]] && export PAGER=$(whence -p most) | |
| 14 | export EDITOR=vim | |
| 15 | export PATH="/home/userx/.apps/:$PATH:/sbin/:" | |
| 16 | export OOO_FORCE_DESKTOP=gnome | |
| 17 | export LESSCHARSET=UTF-8 | |
| 18 | export LS_COLORS='no=00;37:fi=00;37:di=01;36:ln=04;36:pi=33:so=01;35:do=01;35:bd=33;01:cd=33;01:or=31;01:su=37:sg=30:tw=30:ow=34:st=37:ex=01;31:*.cmd=01;31:*.exe=01;31:*.com=01;31:*.btm=01;31:*.sh=01;31:*.run=01;31:*.tar=33:*.tgz=33:*.arj=33:*.taz=33:*.lzh=33:*.zip=33:*.z=33:*.Z=33:*.gz=33:*.bz2=33:*.deb=33:*.rpm=33:*.jar=33:*.rar=33:*.jpg=32:*.jpeg=32:*.gif=32:*.bmp=32:*.pbm=32:*.pgm=32:*.ppm=32:*.tga=32:*.xbm=32:*.xpm=32:*.tif=32:*.tiff=32:*.png=32:*.mov=34:*.mpg=34:*.mpeg=34:*.avi=34:*.fli=34:*.flv=34:*.3gp=34:*.mp4=34:*.divx=34:*.gl=32:*.dl=32:*.xcf=32:*.xwd=32:*.flac=35:*.mp3=35:*.mpc=35:*.ogg=35:*.wav=35:*.m3u=35:'; | |
| 19 | zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
| |
| 20 | zmodload -a zsh/stat stat | |
| 21 | zmodload -a zsh/zpty zpty | |
| 22 | zmodload -a zsh/zprof zprof | |
| 23 | zmodload -ap zsh/mapfile mapfile | |
| 24 | zstyle ':completion:*::::' completer _expand _complete _ignored _approximate | |
| 25 | zstyle ':completion:*:expand:*' tag-order all-expansions | |
| 26 | zstyle ':completion:*' verbose yes | |
| 27 | zstyle ':completion:*:descriptions' format '%B%d%b' | |
| 28 | zstyle ':completion:*:messages' format '%d' | |
| 29 | zstyle ':completion:*:warnings' format 'No matches for: %d' | |
| 30 | zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b' | |
| 31 | zstyle ':completion:*' group-name '' | |
| 32 | zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
| |
| 33 | zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters | |
| 34 | zstyle ':completion:*:*:(^rm):*:*files' ignored-patterns '*?.o' '*?.c~''*?.old' '*?.pro' | |
| 35 | zstyle ':completion:*:functions' ignored-patterns '_*' | |
| 36 | autoload -U compinit && compinit | |
| 37 | HISTFILE=~/.zhistory | |
| 38 | SAVEHIST=50000 | |
| 39 | HISTSIZE=$SAVEHIST | |
| 40 | setopt NO_BEEP | |
| 41 | setopt AUTO_CD | |
| 42 | setopt INTERACTIVECOMMENTS | |
| 43 | setopt SH_WORD_SPLIT | |
| 44 | setopt append_history | |
| 45 | setopt extended_history | |
| 46 | setopt hist_expire_dups_first | |
| 47 | setopt hist_ignore_space | |
| 48 | setopt hist_verify | |
| 49 | setopt inc_append_history | |
| 50 | setopt notify pushdtohome cdablevars autolist | |
| 51 | setopt autocd longlistjobs | |
| 52 | setopt autoresume pushdsilent noclobber | |
| 53 | setopt autopushd pushdminus extendedglob rcquotes mailwarning | |
| 54 | unsetopt bgnice autoparamslash | |
| 55 | setopt menucomplete | |
| 56 | unsetopt IGNORE_EOF | |
| 57 | typeset -U path cdpath fpath manpath | |
| 58 | autoload colors && colors | |
| 59 | if [ $UID -eq 0 ]; then | |
| 60 | else | |
| 61 | prmt='$'; | |
| 62 | fi | |
| 63 | PROMPT="%{$fg_bold[green]%}[$(hostname)]%{$fg_bold[grey]%}%~/ %{$fg_bold[red]%}$prmt%{$reset_color%}"
| |
| 64 | RPROMPT="%{$fg_bold[grey]%}%T %{$reset_color%}% %(?,%{$fg[green]%}:%)%{$reset_color%},%{$fg[red]%}:(%{$reset_color%}"
| |
| 65 | SPROMPT='zsh: Заменить '\''%R'\'' на '\''%r'\'' ? [Yes/No/Abort/Edit] ' | |
| 66 | typeset -g -A key | |
| 67 | autoload -U url-quote-magic | |
| 68 | zle -N self-insert url-quote-magic | |
| 69 | autoload -U zcalc | |
| 70 | export ACK_COLOR_MATCH="cyan bold" | |
| 71 | export ACK_COLOR_FILENAME="cyan bold on_black" | |
| 72 | export ACK_COLOR_LINENO="bold green" | |
| 73 | - | export LS_COLORS GREP_COLORS |
| 73 | + | export LS_COLORS GREP_COLORS |
| 74 | ||
| 75 | ||
| 76 | #### .zsh_key ### | |
| 77 | case $TERM in | |
| 78 | linux) | |
| 79 | bindkey "^[[2~" yank | |
| 80 | bindkey "^[[3~" delete-char | |
| 81 | bindkey "^[[5~" up-line-or-history | |
| 82 | bindkey "^[[6~" down-line-or-history | |
| 83 | bindkey "^[[1~" beginning-of-line | |
| 84 | bindkey "^[[4~" end-of-line | |
| 85 | ;; | |
| 86 | *xterm*|rxvt|(dt|k|E)term) | |
| 87 | bindkey "^[[2~" yank | |
| 88 | bindkey "^[[3~" delete-char | |
| 89 | bindkey "^[[5~" up-line-or-history | |
| 90 | bindkey "^[[6~" down-line-or-history | |
| 91 | bindkey "^[[7~" beginning-of-line | |
| 92 | bindkey "^[[8~" end-of-line | |
| 93 | ;; | |
| 94 | esac | |
| 95 | bindkey "^[[A" history-beginning-search-backward | |
| 96 | bindkey -a "^[[A" history-beginning-search-backward | |
| 97 | bindkey "^[[B" history-beginning-search-forward | |
| 98 | bindkey -a "^[[B" history-beginning-search-forward | |
| 99 | autoload -U predict-on | |
| 100 | zle -N predict-on | |
| 101 | zle -N predict-off | |
| 102 | bindkey -M emacs "^X^Z" predict-on | |
| 103 | bindkey -M emacs "^Z" predict-off | |
| 104 | bindkey -e | |
| 105 | autoload -U edit-command-line | |
| 106 | zle -N edit-command-line | |
| 107 | bindkey -M emacs "^X^E" edit-command-line | |
| 108 | bindkey -M emacs "^N" complete-word |