Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PATH="${PATH}:/usr/local/bin:"
- export EDITOR=/usr/bin/nano
- autoload colors
- colors
- autoload -U compinit
- compinit
- setopt autocd
- setopt No_Beep
- setopt APPEND_HISTORY
- setopt HIST_IGNORE_SPACE
- setopt HIST_REDUCE_BLANKS
- setopt HIST_IGNORE_ALL_DUPS
- setopt histfindnodups
- HISTFILE=~/.zhistory
- SAVEHIST=5000
- HISTSIZE=5000
- autoload -U predict-on
- zle -N predict-on
- zle -N predict-off
- bindkey "^X^Z" predict-on
- bindkey "^Z" predict-off
- bindkey "\e[6~" history-search-forward
- bindkey "\e[5~" history-search-backward
- alias man="LC_ALL="ru_RU.UTF-8" man"
- alias la="ls -lahFG --color=auto"
- alias grep="grep --color=auto -i"
- manpath="/usr/share/man:/usr/local/man:/usr/X11R6/man"
- export MANPATH
- zmodload zsh/complist
- translate() {
- 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';
- echo ''
- return 0;
- }
- if [[ $EUID == 0 ]]
- then
- PROMPT=$'%{\e[1;31m%}%n@TUT_HOSTNAME %{\e[1;34m%}%~ #%{\e[0m%} '
- PROMPT2=$'Закрой ковычки# '
- else
- PROMPT=$'%{\e[1;32m%}%n@TUT_HOSTNAME %{\e[1;34m%}%~ $%{\e[0m%} '
- PROMPT2=$'Закрой ковычки$ '
- fi
- RPROMPT=$'%{\e[1;34m%}%T%{\e[0m%}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement