Advertisement
Guest User

Untitled

a guest
Dec 5th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.80 KB | None | 0 0
  1. [[ -z "$TMUX" && ! -z "$PS1" ]] && tmux && exit
  2. fpath=(~/.zsh_plugins/zsh-completions/src $fpath)
  3. autoload -U compinit && compinit
  4. autoload -U colors && colors
  5. # autoload -U add-zsh-hook
  6. autoload -U select-word-style && select-word-style default
  7. # autoload predict-on && predict-on
  8.  
  9. zstyle ':zle:*' word-chars "*?_.~-=&!#$%^(){}<>./;@ "
  10. zstyle ':zle:*' word-style unspecified
  11. zstyle ':completion:*' format '%B%F{blue}%d%f%b'
  12. zstyle ':completion:*' group-name ''
  13. zstyle ':completion:*:default' menu select=2
  14. zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
  15. zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z} r:|[._-]=*'
  16. zstyle ':completion:*' keep-prefix
  17. zstyle ':completion:*' recent-dirs-insert both
  18. zstyle ':completion:*' completer _expand _oldlist _complete _list _match _history _ignored _approximate _prefix
  19. zstyle ':completion:*' use-cache yes
  20. zstyle ':completion:*' cache-path ~/.zsh/cache
  21. zstyle ':completion:*' verbose yes
  22. zstyle ':completion:*:sudo:*' command-path /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin
  23. zstyle ':completion:*' use-cache true
  24. zstyle ':completion:*' list-separator '-->'
  25.  
  26. export LSCOLORS=Dxfxcxdxbxegedabagacad
  27. export LS_COLORS='di=01;34:ln=01;35:so=01;32:ex=01;31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30'
  28. export ZLS_COLORS=$LS_COLORS
  29.  
  30. REPORTTIME=3
  31.  
  32. setopt notify
  33. setopt correct
  34. setopt auto_list
  35. setopt auto_menu
  36. setopt share_history
  37. setopt histignorealldups
  38. setopt auto_cd
  39. setopt extended_glob
  40. setopt hist_ignore_all_dups
  41. setopt list_packed
  42. setopt list_types
  43. setopt auto_param_slash
  44. setopt mark_dirs
  45. setopt auto_param_keys
  46. setopt magic_equal_subst
  47. setopt complete_in_word
  48. setopt always_last_prompt
  49. setopt print_eight_bit
  50. setopt no_beep
  51. setopt ignore_eof
  52. setopt auto_pushd
  53. setopt hist_ignore_dups
  54. setopt append_history
  55. setopt inc_append_history
  56. setopt hist_no_store
  57. setopt hist_reduce_blanks
  58. setopt prompt_subst
  59. setopt no_nomatch
  60. setopt transient_rprompt
  61. setopt hist_verify
  62. setopt extended_history
  63. setopt hist_expand
  64. setopt rec_exact
  65. setopt no_flow_control
  66. setopt interactive_comments
  67. setopt globdots
  68.  
  69. zstyle ':completion:*:default' menu select=1
  70.  
  71. HISTFILE=~/.zsh_history
  72. HISTSIZE=10000
  73. SAVEHIST=10000
  74.  
  75. alias mkdir='mkdir -p'
  76. alias b='w3m www.google.co.jp'
  77. alias d='popd'
  78. alias login='wget -q -O - www.cr.kisarazu.ac.jp/login.gsp --post-data="login=1&user=j16435&pass=NITpasokon96" > /dev/null'
  79. alias bat="upower -i /org/freedesktop/UPower/devices/battery_BAT0|grep 'percentage'|sed -e 's/ //g'|sed -e 's/percentage://'|sed -e 's/%//'"
  80. alias gcc-win="/usr/bin/i686-w64-mingw32-gcc"
  81. alias nano="vim"
  82. alias grep="grep --color -n -I"
  83. alias ls='ls -hqp --color=auto'
  84. alias l='ls -hqp --color=auto'
  85.  
  86. chpwd() { ls -hqp --color=auto }
  87.  
  88. UUU="%B%F{white}(」・ω・)」うー%b"
  89. NYA="%B%F{white}\(・ω・\)にゃー!%b"
  90. SAN="%B%F{red}\(・ω・\)SAN値!%b"
  91. PIN="%B%F{red}(/・ω・)/ピンチ!%b"
  92.  
  93. PROMPT="%K{green}%(?,${UUU},${SAN})%k %F{cyan}%~ %f$ "
  94. RPROMPT="%K{green}%(?,${NYA},${PIN})%k"
  95.  
  96. if [ ${UID} -eq 0 ]; then
  97. PROMPT="%K{green}%B%F{black}ROOT%b%k %F{cyan}%~ %f$ "
  98. RPROMPT=""
  99. fi
  100.  
  101. autoload -U vcs_info
  102. zstyle ':vcs_info:git:*' check-for-changes true
  103. zstyle ':vcs_info:git:*' stagedstr "%F{yellow}!"
  104. zstyle ':vcs_info:git:*' unstagedstr "%F{red}+"
  105. zstyle ':vcs_info:*' formats "%F{green}%c%u[%b]%f"
  106. zstyle ':vcs_info:*' actionformats '[%b|%a]'
  107. precmd () { vcs_info }
  108. RPROMPT=$RPROMPT'${vcs_info_msg_0_}'
  109.  
  110. source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
  111.  
  112. function command_not_found_handler(){
  113. echo "ハァ…?$1とか何言ってんの?"
  114. }
  115.  
  116. echo "\n「私は確かにアニメが好きだし、エロゲーも超好き・・・ううん、愛してると言ってもいい!学校の友達といるのも楽しいよ。でもこっちも同じくらい好き!どっちかを選ぶなんて出来ない!両方好きで好きで堪らないのが私なの!」\n"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement