Advertisement
Guest User

zshrc

a guest
May 31st, 2025
7
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | Source Code | 0 0
  1. # Lines configured by zsh-newuser-install
  2. HISTFILE=~/.histfile
  3. HISTSIZE=1000
  4. SAVEHIST=1000
  5. setopt autocd extendedglob notify
  6. bindkey -e
  7. # End of lines configured by zsh-newuser-install
  8.  
  9. # End of lines added by compinstall
  10. # Only run in interactive shell
  11. [[ $- != *i* ]] && return
  12.  
  13. # The following lines were added by compinstall
  14. # ========== Completions ==========
  15. zstyle :compinstall filename '/home/psycho/.zshrc'
  16. # Completion init
  17. autoload -Uz compinit
  18. compinit
  19.  
  20. # ========== Aliases ==========
  21. alias ls='ls --color=auto'
  22. alias grep='grep --color=auto'
  23.  
  24. # ========== PATHs ==========
  25. export PATH=$PATH:/home/psycho/.local/bin
  26. # Added by LM Studio CLI (lms)
  27. export PATH="$PATH:/home/psycho/.lmstudio/bin"
  28.  
  29. # ========== Oh My Posh ==========
  30. if command -v oh-my-posh &> /dev/null; then
  31. export POSH_THEME="/home/psycho/.config/myprofile.omp.json"
  32. eval "$(oh-my-posh init zsh --config $POSH_THEME)"
  33. fi
  34.  
  35. ### Added by Zinit's installer
  36. if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then
  37. print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f"
  38. command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit"
  39. command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \
  40. print -P "%F{33} %F{34}Installation successful.%f%b" || \
  41. print -P "%F{160} The clone has failed.%f%b"
  42. fi
  43.  
  44. source "$HOME/.local/share/zinit/zinit.git/zinit.zsh"
  45. autoload -Uz _zinit
  46. (( ${+_comps} )) && _comps[zinit]=_zinit
  47.  
  48. # Load a few important annexes, without Turbo
  49. # (this is currently required for annexes)
  50. zinit light-mode for \
  51. zdharma-continuum/zinit-annex-as-monitor \
  52. zdharma-continuum/zinit-annex-bin-gem-node \
  53. zdharma-continuum/zinit-annex-patch-dl \
  54. zdharma-continuum/zinit-annex-rust
  55.  
  56. ### End of Zinit's installer chunk
  57.  
  58. #Plugins
  59.  
  60. zinit light zsh-users/zsh-autosuggestions
  61. zinit light zdharma-continuum/fast-syntax-highlighting
  62. zinit light Aloxaf/fzf-tab
  63. zinit light zsh-users/zsh-completions
  64.  
  65. # ========== NVM ==========
  66. source /usr/share/nvm/init-nvm.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement