Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. autoload -Uz colors
  2. colors
  3.  
  4. setopt histignorealldups sharehistory
  5.  
  6. # Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
  7. HISTSIZE=1000
  8. SAVEHIST=1000
  9. HISTFILE=~/.zsh_history
  10.  
  11. # Use modern completion system
  12. autoload -Uz compinit
  13. eval "$(dircolors -b)"
  14. zstyle ':completion:*' menu select
  15. zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
  16. zstyle ':completion:*' verbose true
  17. zstyle ':completion:*' completer _expand _complete _correct _approximate
  18. zstyle ':completion:*:descriptions' format "%2F%B--- %d%b%f"
  19. zstyle ':completion:*:messages' format '%d'
  20. zstyle ':completion:*:warnings' format "%1F%B--- No matches found%b%f"
  21. zstyle ':completion:*:corrections' format '%214F%B--- %d%b%f'
  22. zstyle ':completion:*' group-name ''
  23. zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
  24. zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
  25. compinit
  26.  
  27. alias sudo='sudo '
  28.  
  29. # Load version contron information
  30. autoload -Uz vcs_info
  31. precmd_vcs_info() { vcs_info }
  32. precmd_functions+=( precmd_vcs_info )
  33. setopt prompt_subst
  34. zstyle ':vcs_info:git:*' formats '  %b'
  35.  
  36. # Make ls display colors
  37. alias ls='ls --color=auto'
  38.  
  39. # Clear .zsh_history
  40. alias clear-history='rm ~/.zsh_history'
  41.  
  42. # Print neofetch for mere aesthetics
  43. neofetch
  44.  
  45. # Prompt config
  46. if [[ $EUID -ne 0 ]]; then
  47. PROMPT='%B%203F %n%f %120F %m%f %228F %1~%f%159F${vcs_info_msg_0_}%f %b '
  48. else
  49. PROMPT='%B%214F[%n@%m %1~]# %f%b'
  50. fi
  51.  
  52. # Fancy features - comment out to speed up load time
  53.  
  54. ## Load zsh-autosuggestions
  55. source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
  56.  
  57. ## Load zsh-syntax-highlighting
  58. source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement