Guest User

Untitled

a guest
May 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. REPORTTIME=1
  2. export LSCOLORS=exfxcxdxbxegedabagacad
  3. export EDITOR="/usr/bin/mate -w"
  4. export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/texbin:/usr/X11/bin:/usr/local/git/bin/"
  5. export ZLS_COLORS=$LS_COLORS
  6. export PS1='[%~]$ '
  7. precmd() { printf "\033]0;${PWD/#$HOME/~}\007"; } # Sets Title
  8. alias ls="ls -G"
  9. alias grep="grep --color"
  10.  
  11. ###########
  12. # Options #
  13. ###########
  14. setopt APPEND_HISTORY
  15. setopt NO_BEEP
  16. setopt AUTO_CD
  17. setopt COMPLETE_IN_WORD
  18. setopt CORRECT
  19. setopt MENUCOMPLETE
  20. setopt HISTIGNOREDUPS
  21.  
  22. #setopt \
  23. # no_beep \
  24. # auto_cd \
  25. # complete_in_word \
  26. # hash_cmds \
  27. # list_types \
  28. # auto_remove_slash \
  29. # NO_menu_complete \
  30. # NO_auto_menu \
  31. # NO_hup \
  32. # NO_list_beep \
  33. # interactive_comments \
  34. # inc_append_history \
  35. # auto_list \
  36. # chase_dots \
  37. # extendedglob
  38.  
  39. ################
  40. # Autocomplete #
  41. ################
  42. autoload -U compinit
  43. compinit
  44. zstyle ':completion:*' completer _complete _ignored
  45. zstyle -e ':completion:*:approximate:*' max-errors 'reply=( $(( ($#PREFIX+$#SUFFIX)/3 )) numeric )'
  46. zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
  47. zstyle ':completion:*' list-prompt '%SAt %p: Hit TAB for more, or the character to insert%s'
  48. zstyle ':completion:*:processes' command 'ps -aU$USER'
  49. zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
  50. zstyle ':completion:*::::' completer _expand _complete _ignored _approximate
  51. zstyle ':completion:*:expand:*' tag-order all-expansions
  52. zstyle ':completion:*' hosts $(awk '/^[^#]/ {print $2 $3" "$4" "$5}' /etc/hosts | grep -v ip6- && grep "^#%" /etc/hosts | awk -F% '{print $2}')
  53. zstyle ':completion:*' verbose yes
  54. zstyle ':completion:*:descriptions' format '%B%d%b'
  55. zstyle ':completion:*:messages' format '%d'
  56. zstyle ':completion:*:warnings' format 'No matches for: %d'
  57. zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b'
  58. zstyle ':completion:*' group-name ''
  59. zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
  60. zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters
  61. zstyle '*' hosts $hosts
  62. zstyle ':completion:*:*:(^rm):*:*files' ignored-patterns '*?.o' '*?.c~' '*?.old' '*?.pro'zstyle ':completion:*:functions' ignored-patterns '_*'
  63. zstyle ':completion:*:scp:*' tag-order files users 'hosts:-host hosts:-domain:domain hosts:-ipaddr"IP\ Address *'
  64. zstyle ':completion:*:scp:*' group-order files all-files users hosts-domain hosts-host hosts-ipaddr
  65. zstyle ':completion:*:ssh:*' tag-order users 'hosts:-host hosts:-domain:domain hosts:-ipaddr"IP\ Address *'
  66. zstyle ':completion:*:ssh:*' group-order hosts-domain hosts-host users hosts-ipaddr
  67. zstyle '*' single-ignored show
Add Comment
Please, Sign In to add comment