pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

ixpict private pastebin - collaborative debugging tool What's a private pastebin?


Posted by ixpict on Sat 2 May 14:57
report abuse | download | new post

  1. # automatically remove duplicates from these arrays
  2. typeset -U path cdpath fpath manpath
  3.  
  4. # Global aliases -- These do not have to be
  5. # at the beginning of the command line.
  6. alias -g M='|more'
  7. alias -g H='|head'
  8. alias -g T='|tail'
  9.  
  10. manpath=($X11HOME/man /usr/man /usr/lang/man /usr/local/man)
  11. export MANPATH
  12.  
  13. # Hosts to use for completion (see later zstyle)
  14. hosts=(`hostname` 10.2.0.9 10.2.0.8 10.2.111.23 10.2.82.18)
  15.  
  16. # Set prompts
  17. #autoload -U promptinit #хУФБОПЧЛБ ФЕН
  18. #promptinit
  19.  
  20. # default prompt
  21. PROMPT="%{`echo $GREEN`%}%m%{`echo $BLUE`%}@%{`echo $RED`%}%n %{`echo $NORMAL`%}%~%# "
  22.  
  23. # prompt for right side of screen
  24. RPROMPT="[%{`echo $GREEN`%}%y-%{`echo $GREEN`%}%T%{`echo $NORMAL`%}]"
  25.  
  26. # Some environment variables
  27. export MAIL=/var/spool/mail/$USERNAME
  28. export LESS=-cex3M
  29. export HELPDIR=/usr/local/lib/zsh/help # directory for run-help function to find docs
  30.  
  31. MAILCHECK=300
  32. DIRSTACKSIZE=20
  33.  
  34. #HISTORY
  35. HISTSIZE=10000
  36. HISTFILE=~/.zhistory
  37. SAVEHIST=10000
  38.  
  39.  
  40. # Watch for my friends
  41. #watch=( $(<~/.friends) ) # watch for people in .friends file
  42. watch=(notme) # watch for everybody but me
  43. LOGCHECK=300 # check every 5 min for login/logout activity
  44. WATCHFMT='%n %a %l from %m at %t.'
  45.  
  46. # Set/unset shell options
  47. setopt notify globdots correct pushdtohome cdablevars autolist
  48. setopt correctall autocd recexact longlistjobs
  49. setopt autoresume histignoredups pushdsilent noclobber
  50. setopt autopushd pushdminus extendedglob rcquotes mailwarning
  51. setopt APPEND_HISTORY
  52. setopt HIST_IGNORE_ALL_DUPS
  53. setopt HIST_IGNORE_SPACE
  54. setopt HIST_REDUCE_BLANKS
  55. unsetopt bgnice autoparamslash
  56.  
  57. # Autoload zsh modules when they are referenced
  58. zmodload -a zsh/stat stat
  59. zmodload -a zsh/zpty zpty
  60. zmodload -a zsh/zprof zprof
  61. zmodload -ap zsh/mapfile mapfile
  62. zmodload zsh/mathfunc
  63. zmodload zsh/zftp
  64.  
  65. # Some nice key bindings
  66. #bindkey '^X^Z' universal-argument ' ' magic-space
  67. #bindkey '^X^A' vi-find-prev-char-skip
  68. #bindkey '^Xa' _expand_alias
  69. #bindkey '^Z' accept-and-hold
  70. #bindkey -s '\M-/' \\\\
  71. #bindkey -s '\M-=' \|
  72.  
  73. # bindkey -v # vi key bindings
  74.  
  75. bindkey -e # emacs key bindings
  76. bindkey ' ' magic-space # also do history expansion on space
  77. bindkey '^I' complete-word # complete on tab, leave expansion to _expand
  78. #Пробовал править клавиши.. по умолчанию не работают ( ещё думаю как исправить
  79. case $TERM in
  80. linux)
  81. bindkey "^[[2~" yank
  82. bindkey "^[[3~" delete-char
  83. bindkey "^[[5~" up-line-or-history
  84. bindkey "^[[6~" down-line-or-history
  85. bindkey "^[[1~" beginning-of-line
  86. bindkey "^[[4~" end-of-line
  87. bindkey "^[e" expand-cmd-path
  88. bindkey "^[[A" up-line-or-search
  89. bindkey "^[[B" down-line-or-search
  90. bindkey " " magick-space
  91. ;;
  92. *xterm*|rxvt|(dt|k|E)term)
  93. bindkey "^[[2~" yank
  94. bindkey "^[[3~" delete-char
  95. bindkey "^[[5~" up-line-or-history
  96. bindkey "^[[6~" down-line-or-history
  97. bindkey "^[[1~" beginning-of-line
  98. bindkey "^[[4~" end-of-line
  99. bindkey "^[e" expand-cmd-path
  100. bindkey "^[[A" up-line-or-search
  101. bindkey "^[[B" down-line-or-search
  102. bindkey " " magick-space
  103.  
  104.  
  105. # Setup new style completion system. To see examples of the old style (compctl
  106. # based) programmable completion, check Misc/compctl-examples in the zsh
  107. # distribution.
  108. autoload -U compinit
  109. compinit
  110.  
  111. # Completion Styles
  112.  
  113. # list of completers to use
  114. zstyle ':completion:*::::' completer _expand _complete _ignored _approximate
  115.  
  116. # allow one error for every three characters typed in approximate completer
  117. zstyle -e ':completion:*:approximate:*' max-errors \
  118. 'reply=( $(( ($#PREFIX+$#SUFFIX)/3 )) numeric )'
  119.  
  120. # insert all expansions for expand completer
  121. zstyle ':completion:*:expand:*' tag-order all-expansions
  122.  
  123. # formatting and messages
  124. zstyle ':completion:*' verbose yes
  125. zstyle ':completion:*:descriptions' format '%B%d%b'
  126. zstyle ':completion:*:messages' format '%d'
  127. zstyle ':completion:*:warnings' format 'No matches for: %d'
  128. zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b'
  129. zstyle ':completion:*' group-name ''
  130.  
  131. # match uppercase from lowercase
  132. zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
  133.  
  134. # offer indexes before parameters in subscripts
  135. zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters
  136.  
  137. # command for process lists, the local web server details and host completion
  138. #zstyle ':completion:*:processes' command 'ps -o pid,s,nice,stime,args'
  139. #zstyle ':completion:*:urls' local 'www' '/var/www/htdocs' 'public_html'
  140. zstyle '*' hosts $hosts
  141.  
  142. # Filename suffixes to ignore during completion (except after rm command)
  143. zstyle ':completion:*:*:(^rm):*:*files' ignored-patterns '*?.o' '*?.c~' \
  144. '*?.old' '*?.pro'
  145. # the same for old style completion
  146. #fignore=(.o .c~ .old .pro)
  147.  
  148. # ignore completion functions (until the _ignored completer)
  149. zstyle ':completion:*:functions' ignored-patterns '_*'

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me so that I can delete my post