Advertisement
Guest User

.zshrc

a guest
Aug 26th, 2016
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. [[ $- != *i* ]] && return
  2. # The following lines were added by compinstall
  3.  
  4. screenfetch | lolcat
  5.  
  6. ## OH-MY-ZSH!
  7. ZSH=/usr/share/oh-my-zsh/
  8. ZSH_THEME="gnzh"
  9. DISABLE_AUTO_UPDATE="true"
  10. plugins=(git adb archlinux colored-man-pages colorize emoji extract sudo systemd themes)
  11. ZSH_CACHE_DIR=$HOME/.oh-my-zsh-cache
  12. if [[ ! -d $ZSH_CACHE_DIR ]]; then
  13. mkdir $ZSH_CACHE_DIR
  14. fi
  15. source $ZSH/oh-my-zsh.sh
  16. ## OH-MY-ZSH end
  17.  
  18. autoload -U colors colors
  19.  
  20. zstyle ':completion:*' completer _oldlist _expand _complete _ignored _approximate _prefix
  21. zstyle ':completion:*' expand prefix
  22. zstyle ':completion:*' file-sort name
  23. zstyle ':completion:*' format '%F{cyan}Дополнение, тип: %d%f'
  24. zstyle ':completion:*' group-name ''
  25. zstyle ':completion:*' list-colors ''
  26. zstyle ':completion:*' list-prompt %SAt %p: TAB для продолжения, букву для вставки %s
  27. zstyle ':completion:*' matcher-list 'm:{[:lower:]}={[:upper:]}' 'r:|[._-]=** r:|=**' 'l:|=* r:|=*'
  28. zstyle ':completion:*' max-errors 2
  29. zstyle ':completion:*' menu select=1
  30. zstyle ':completion:*' original true
  31. zstyle ':completion:*' preserve-prefix '//[^/]##/'
  32. zstyle ':completion:*' prompt '%F{red}Есть %e исправлений!%f'
  33. zstyle ':completion:*' select-prompt %SПрокрутка: выделение на %p%s
  34. zstyle ':completion:*' special-dirs true
  35. zstyle ':completion:*' squeeze-slashes true
  36. zstyle ':completion:*' verbose true
  37. zstyle :compinstall filename '/home/therasva/.zshrc'
  38.  
  39. SPROMPT="Исправить %R на %r? <(Y)es/(N)o/(E)dit/(A)bort>"
  40.  
  41. autoload -Uz compinit
  42. compinit
  43. # End of lines added by compinstall
  44. # Lines configured by zsh-newuser-install
  45. HISTFILE=~/.zhistfile
  46. HISTSIZE=10000
  47. SAVEHIST=15000
  48. setopt appendhistory inc_append_history sharehistory hist_ignore_all_dups
  49. setopt hist_reduce_blanks nonomatch noflowcontrol checkjobs longlistjobs
  50. setopt beep extendedglob notify interactive_comments autocd hash_list_all
  51. setopt correct_all
  52. bindkey -e
  53. # End of lines configured by zsh-newuser-install
  54.  
  55. #[ -r /etc/profile.d/cnf.sh ] && source /etc/profile.d/cnf.sh
  56.  
  57. export PATH=/home/therasva/.gem/ruby/2.3.0/bin:$PATH
  58. export PATH=/usr/local/cuda-8.0/bin:$PATH
  59. export EDITOR="nano"
  60.  
  61. alias ll="ls -al --classify --color --human-readable --group-directories-first"
  62. alias killall="killall --interactive --verbose"
  63. alias free="free -t -m"
  64. alias zsh-refresh="source ~/.zshrc"
  65. alias zsh-edit="${EDITOR} ~/.zshrc"
  66.  
  67. expand-or-complete-with-dots() {
  68. echo -n "\e[31m...loading...\e[0m"
  69. zle expand-or-complete
  70. zle redisplay
  71. }
  72. zle -N expand-or-complete-with-dots
  73.  
  74. bindkey '^[[A' up-line-or-search # up arrow for back-history-search
  75. bindkey '^[[B' down-line-or-search # down arrow for fwd-history-search
  76. bindkey ';5D' backward-word # ctrl+left
  77. bindkey ';5C' forward-word # ctrl+right
  78. bindkey '\e[1~' beginning-of-line # home
  79. bindkey '\e[2~' overwrite-mode # insert
  80. bindkey '\e[3~' delete-char # del
  81. bindkey '\e[4~' end-of-line # end
  82. bindkey '\e[5~' up-line-or-history # page-up
  83. bindkey '\e[6~' down-line-or-history # page-down
  84. bindkey "^I" expand-or-complete-with-dots # tab
  85.  
  86. if [ -f /usr/bin/grc ]; then
  87. alias grc='grc --colour=auto'
  88. alias ping='grc ping'
  89. alias last='grc last'
  90. alias netstat='grc netstat'
  91. alias traceroute='grc traceroute'
  92. alias make='grc make'
  93. alias gcc='grc gcc'
  94. alias configure='grc ./configure'
  95. alias cat="grc cat"
  96. alias tail="grc tail"
  97. alias head="grc head"
  98. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement