cmdywrtr27

Untitled

Apr 17th, 2024
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.37 KB | None | 0 0
  1. autoload -Uz compinit && compinit
  2. autoload -U +X bashcompinit && bashcompinit
  3. autoload -Uz colors && colors
  4. autoload -Uz add-zsh-hook vcs_info
  5. zmodload -i zsh/complist
  6.  
  7. zstyle ':completion:*' completer _oldlist _expand _complete _ignored _match _correct _approximate _prefix
  8. zstyle ':completion:*' expand prefix
  9. zstyle ':completion:*' list-suffixes true
  10. zstyle ':completion:*' list-colors $(dircolors)
  11. zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]-_}={[:upper:][:lower:]_-}' 'r:|=*' 'l:|=* r:|=*'
  12. zstyle ':completion:*' group-name ''
  13. zstyle ':completion:*' menu select
  14. zstyle ':completion:*' verbose true
  15. zstyle ':completion:*' use-cache true
  16. zstyle ':completion:*' cache-path $ZSH_CACHE_DIR
  17. zstyle ':completion:*' rehash true
  18.  
  19. zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters
  20. zstyle ':completion:*:cd:*' tag-order local-directories directory-stack path-directories group-order
  21. zstyle ':completion::*:-tilde-:*:*' group-order named-directories users
  22. zstyle ':completion:*:vim:*' file-patterns '%p:globbed-files'
  23. zstyle ':completion:*:vim:*' file-sort modification
  24. zstyle ':completion:*:messages' format '%B%F{#ffcb6b}--%F{#f07178} %d %F{#ffcb6b}--%f%b'
  25. zstyle ':completion:*:warnings' format '%B%F{#ffcb6b}--%F{#f07178} No Matches Found %F{#ffcb6b}--%f%b'
  26. zstyle ':completion:*:descriptions' format "%B%F{#ffcb6b}-- %F{#f07178}%d %F{#ffcb6b}--%f%b"
  27. zstyle ':completion:*:corrections' format "%B%F{#ffcb6b}-- %F{#f07178}%d %F{#ffcb6b}-- %F{#f07178}(%e errors)%f%b"
  28. zstyle ':completion:*:default' list-prompt "%B%F{#ffcb6b}-- %F{#f07178}%S%M matches%s %F{#ffcb6b}--%f%b"
  29. zstyle ':completion:*:manuals' separate-sections true
  30. zstyle ':completion:*:manuals.(^1*)' insert-sections true
  31. zstyle ':completion:*:*:kill:*:processes' command 'ps --forest -A -o pid,user,cmd'
  32. zstyle ':completion:*:processes-names' command 'ps axho command'
  33. zstyle -e ':completion:*:approximate:*' max-errors 'reply=($((($#PREFIX+$#SUFFIX)/2))numeric)'
  34.  
  35. zstyle ':vcs_info:*' enable git
  36. zstyle ':vcs_info:*' get-revision true
  37. zstyle ':vcs_info:*' check-for-changes true
  38. zstyle ':vcs_info:git*' formats '%B%F{#777777}(%b)%b%f'
  39. zstyle ':vcs_info:git*' actionformats '%B%F{#777777}(%s)-[%b|%a]%u%c-%b%f'
  40.  
  41. zstyle :compinstall filename '~/.zshrc'
  42.  
  43. HISTFILE=$ZDOTDIR/zsh_history
  44. HISTSIZE=5000
  45. SAVEHIST=5000
  46.  
  47. setopt autocd extendedglob auto_menu auto_list no_auto_remove_slash nohashdirs completealiases append_history nomatch hist_ignore_all_dups complete_in_word interactivecomments always_to_end prompt_subst globdots share_history numeric_glob_sort
  48. unsetopt beep menu_complete flowcontrol
  49. bindkey -M menuselect '^o' accept-and-infer-next-history
  50. bindkey -v
  51. # End of lines configured by zsh-newuser-install
  52. bindkey "^[[A" history-substring-search-up
  53. bindkey "^[[B" history-substring-search-down
  54.  
  55. # Window title
  56. case $TERM in
  57. termite|*xterm*|rxvt|rxvt-unicode|rxvt-256color|rxvt-unicode-256color|(dt|k|E)term)
  58. precmd() {
  59. vcs_info
  60. print -Pn "\e]0;%~\a"
  61. }
  62. preexec() {
  63. print -Pn "\e]0;$1\a"
  64. }
  65. ;;
  66. screen|screen-256color)
  67. precmd() {
  68. vcs_info
  69. print -Pn "\e]83;$1\a"
  70. print -Pn "\e]0;%L %~\a"
  71. }
  72. preexec() {
  73. print -Pn "\e]83;$1\a"
  74. print -Pn "\e]0;%L %~\a"
  75. }
  76. ;;
  77. esac
  78.  
  79. source $ZDOTDIR/fzf.zsh
  80. source $ZDOTDIR/git.zsh
  81. source $ZDOTDIR/aliases.zsh
  82. source $ZDOTDIR/functions.zsh
  83.  
  84. source $ZDOTDIR/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
  85. source $ZDOTDIR/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
  86. source $ZDOTDIR/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
  87.  
  88. eval "$(thefuck --alias)"
  89. #eval "$(starship init zsh)"
  90. #source $ZDOTDIR/themes/agnoster-gaps.zsh
  91. #source $ZDOTDIR/themes/lines.zsh
  92. #source $ZDOTDIR/themes/minimal.zsh
  93. #source $ZDOTDIR/themes/right.zsh
  94. #source $ZDOTDIR/themes/ninja.zsh
  95. #source $ZDOTDIR/themes/agkozak.zsh
  96. source $ZDOTDIR/themes/plain.zsh
  97.  
  98. # >>> conda initialize >>>
  99. # !! Contents within this block are managed by 'conda init' !!
  100. __conda_setup="$('/home/josh/.miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
  101. if [ $? -eq 0 ]; then
  102. eval "$__conda_setup"
  103. else
  104. if [ -f "/home/josh/.miniconda3/etc/profile.d/conda.sh" ]; then
  105. . "/home/josh/.miniconda3/etc/profile.d/conda.sh"
  106. else
  107. export PATH="/home/josh/.miniconda3/bin:$PATH"
  108. fi
  109. fi
  110. unset __conda_setup
  111. # <<< conda initialize <<<
Add Comment
Please, Sign In to add comment