GQwerty07

.zshrc

Jul 25th, 2025
14
0
2 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.78 KB | None | 0 0
  1. zmodload zsh/zprof # enable zsh initialization timing
  2.  
  3. # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
  4. # Initialization code that may require console input (password prompts, [y/n]
  5. # confirmations, etc.) must go above this block; everything else may go below.
  6. if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
  7.   source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
  8. fi
  9.  
  10. # If you come from bash you might have to change your $PATH.
  11. export PATH=$HOME/bin:/usr/local/bin:$PATH
  12.  
  13. # source /etc/profile.d/modules.sh
  14.  
  15. # Path to your oh-my-zsh installation.
  16. export ZSH="$HOME/.oh-my-zsh"
  17.  
  18. # Only regenerate the completions cache once per day
  19. autoload -Uz compinit
  20. if [ "$(date +'%j')" != "$(stat -f '%Sm' -t '%j' ~/.zcompdump 2>/dev/null)" ]; then
  21.     compinit
  22. else
  23.     compinit -C
  24. fi
  25.  
  26. # Set name of the theme to load --- if set to "random", it will
  27. # load a random theme each time oh-my-zsh is loaded, in which case,
  28. # to know which specific one was loaded, run: echo $RANDOM_THEME
  29. # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
  30. ZSH_THEME="robbyrussell"
  31.  
  32. # Set list of themes to pick from when loading at random
  33. # Setting this variable when ZSH_THEME=random will cause zsh to load
  34. # a theme from this variable instead of looking in $ZSH/themes/
  35. # If set to an empty array, this variable will have no effect.
  36. # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
  37.  
  38. # Uncomment the following line to use case-sensitive completion.
  39. # CASE_SENSITIVE="true"
  40.  
  41. # Uncomment the following line to use hyphen-insensitive completion.
  42. # Case-sensitive completion must be off. _ and - will be interchangeable.
  43. HYPHEN_INSENSITIVE="true"
  44.  
  45. # Uncomment one of the following lines to change the auto-update behavior
  46. # zstyle ':omz:update' mode disabled  # disable automatic updates
  47. # zstyle ':omz:update' mode auto      # update automatically without asking
  48. zstyle ':omz:update' mode reminder  # just remind me to update when it's time
  49.  
  50. # Update verbosity
  51. # zstyle ':omz:update' verbose default # default update prompt
  52. zstyle ':omz:update' verbose minimal # only few lines
  53. # zstyle ':omz:update' verbose silent # only errors
  54.  
  55. # Uncomment the following line to change how often to auto-update (in days).
  56. zstyle ':omz:update' frequency 14
  57. # zstyle ':omz:update' mode disabled
  58.  
  59. # Uncomment the following line if pasting URLs and other text is messed up.
  60. # DISABLE_MAGIC_FUNCTIONS="true"
  61.  
  62. # Uncomment the following line to disable colors in ls.
  63. # DISABLE_LS_COLORS="true"
  64.  
  65. # Uncomment the following line to disable auto-setting terminal title.
  66. # DISABLE_AUTO_TITLE="true"
  67.  
  68. # Uncomment the following line to enable command auto-correction.
  69. # ENABLE_CORRECTION="true"
  70.  
  71. # Uncomment the following line to display red dots whilst waiting for completion.
  72. # You can also set it to another string to have that shown instead of the default red dots.
  73. # e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
  74. # Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
  75. COMPLETION_WAITING_DOTS="true"
  76.  
  77. # Uncomment the following line if you want to disable marking untracked files
  78. # under VCS as dirty. This makes repository status check for large repositories
  79. # much, much faster.
  80. # DISABLE_UNTRACKED_FILES_DIRTY="true"
  81.  
  82. # Uncomment the following line if you want to change the command execution time
  83. # stamp shown in the history command output.
  84. # You can set one of the optional three formats:
  85. # "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
  86. # or set a custom format using the strftime function format specifications,
  87. # see 'man strftime' for details.
  88. HIST_STAMPS="yyyy-mm-dd"
  89.  
  90. # Would you like to use another custom folder than $ZSH/custom?
  91. # ZSH_CUSTOM=/path/to/new-custom-folder
  92.  
  93. # Which plugins would you like to load?
  94. # Standard plugins can be found in $ZSH/plugins/
  95. # Custom plugins may be added to $ZSH_CUSTOM/plugins/
  96. # Example format: plugins=(rails git textmate ruby lighthouse)
  97. # Add wisely, as too many plugins slow down shell startup.
  98. plugins=(
  99.     #git
  100.     zsh-autosuggestions
  101.     zsh-syntax-highlighting
  102. )
  103.  
  104. source $ZSH/oh-my-zsh.sh
  105.  
  106. # User configuration
  107.  
  108. # export MANPATH="/usr/local/man:$MANPATH"
  109.  
  110. # You may need to manually set your language environment
  111. # export LANG=en_US.UTF-8
  112.  
  113. # Preferred editor for local and remote sessions
  114. if [[ -n $SSH_CONNECTION ]]; then
  115.   export EDITOR='code'
  116. else
  117.   export EDITOR='code'
  118. fi
  119.  
  120. # Compilation flags
  121. # export ARCHFLAGS="-arch x86_64"
  122.  
  123. # Set personal aliases, overriding those provided by oh-my-zsh libs,
  124. # plugins, and themes. Aliases can be placed here, though oh-my-zsh
  125. # users are encouraged to define aliases within the ZSH_CUSTOM folder.
  126. # For a full list of active aliases, run `alias`.
  127. #
  128. # Example aliases
  129. # alias zshconfig="mate ~/.zshrc"
  130. # alias ohmyzsh="mate ~/.oh-my-zsh"
  131.  
  132. # Keep 50000 lines of history within the shell and save it to ~/.zsh_history:
  133. HISTSIZE=50000
  134. SAVEHIST=50000
  135. HISTFILE=~/.zsh_history
  136.  
  137. source ~/powerlevel10k/powerlevel10k.zsh-theme
  138.  
  139. # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
  140. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
  141.  
  142. # Hide some of the prompt filepath
  143. # PS1='[%2d] $ '
  144.  
  145. ##################################### Additions #####################################
  146.  
  147. # Fuzzy finder
  148. alias fzf='fzf --height=40%'
  149. source ~/.fzf.zsh
  150.  
  151. # Bat
  152. BATPREFIX="$HOME/tools/bat"
  153. export PATH="$BATPREFIX/bin:/usr/bin/bat:/cvmfs/...
  154. export LD_LIBRARY_PATH="$BATPREFIX/lib:$LD_LIBRARY_PATH"
  155. export CPATH="$BATPREFIX/include:$CPATH"
  156. export PKG_CONFIG_PATH="$BATPREFIX:$BATPREFIX/lib/pkgconfig:$PKG_CONFIG_PATH"
  157.  
  158. # Zoxide
  159. export PATH="$HOME/tools/zoxide/zoxide/target/release/:$PATH"
  160. eval "$(zoxide init zsh)"
  161.  
  162. #source $LMOD_PKG/init/zsh
  163.  
  164. # zprof # enable zsh initialization timing
  165.  
Advertisement
Add Comment
Please, Sign In to add comment