Advertisement
Guest User

Untitled

a guest
Sep 9th, 2011
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.21 KB | None | 0 0
  1. PATH="${PATH}:/usr/local/bin:"
  2. export EDITOR=/usr/bin/nano
  3. autoload colors
  4. colors
  5. autoload -U compinit
  6. compinit
  7. setopt autocd
  8. setopt No_Beep
  9. setopt APPEND_HISTORY
  10. setopt HIST_IGNORE_SPACE
  11. setopt HIST_REDUCE_BLANKS
  12. setopt HIST_IGNORE_ALL_DUPS
  13. setopt histfindnodups
  14. HISTFILE=~/.zhistory
  15. SAVEHIST=5000
  16. HISTSIZE=5000
  17. autoload -U predict-on
  18. zle -N predict-on
  19. zle -N predict-off
  20. bindkey "^X^Z" predict-on
  21. bindkey "^Z" predict-off
  22. bindkey "\e[6~" history-search-forward
  23. bindkey "\e[5~" history-search-backward
  24. alias man="LC_ALL="ru_RU.UTF-8" man"
  25. alias la="ls -lahFG  --color=auto"
  26. alias grep="grep --color=auto -i"
  27. manpath="/usr/share/man:/usr/local/man:/usr/X11R6/man"
  28. export MANPATH
  29. zmodload zsh/complist
  30.  
  31. translate() {
  32. wget -qO- "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=$1&langpair=${2:-en}|${3:-ru}" | sed -E -n 's/[[:alnum:]": {}]+"translatedText":"([^"]+)".*/\1/p';
  33. echo ''
  34. return 0;
  35. }
  36.  
  37. if [[ $EUID == 0 ]]
  38. then
  39. PROMPT=$'%{\e[1;31m%}%n@TUT_HOSTNAME %{\e[1;34m%}%~ #%{\e[0m%} '
  40. PROMPT2=$'Закрой ковычки# '
  41. else
  42. PROMPT=$'%{\e[1;32m%}%n@TUT_HOSTNAME %{\e[1;34m%}%~ $%{\e[0m%} '
  43. PROMPT2=$'Закрой ковычки$ '
  44. fi
  45. RPROMPT=$'%{\e[1;34m%}%T%{\e[0m%}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement