comparison dot_zshrc @ 814:8847b222a788

feat: enable helix as default editor
author zegervdv <zegervdv@me.com>
date Tue, 05 Dec 2023 21:19:46 +0100
parents 72744c944497
children e4d67607d020
comparison
equal deleted inserted replaced
813:a7f5b5e2f4f4 814:8847b222a788
182 182
183 # nvim completion 183 # nvim completion
184 zstyle ':completion:*:*:nvim:*' ignored-patterns '*.(o|hex|elf|pyc|pdf|dup)' 184 zstyle ':completion:*:*:nvim:*' ignored-patterns '*.(o|hex|elf|pyc|pdf|dup)'
185 zstyle ':completion:*:*:nvim:*' file-sort modification 185 zstyle ':completion:*:*:nvim:*' file-sort modification
186 186
187 # hx completion
188 zstyle ':completion:*:*:hx:*' ignored-patterns '*.(o|hex|elf|pyc|pdf|dup)'
189 zstyle ':completion:*:*:hx:*' file-sort modification
190
187 if [ -z "$SSH_AUTH_SOCK" ]; then 191 if [ -z "$SSH_AUTH_SOCK" ]; then
188 eval "$(ssh-agent)" 192 eval "$(ssh-agent)"
189 fi 193 fi
190 194
191 # fg when pressing Ctrl+Z 195 # fg when pressing Ctrl+Z
284 bindkey -M isearch " " self-insert 288 bindkey -M isearch " " self-insert
285 289
286 # Exports 290 # Exports
287 export XDG_CONFIG_HOME=$HOME/.config 291 export XDG_CONFIG_HOME=$HOME/.config
288 export PATH=$HOME/bin:$PATH 292 export PATH=$HOME/bin:$PATH
289 293 export PATH=$HOME/.local/bin:$PATH
290 export EDITOR=nvim 294
291 export HGEDITOR=nvim 295 export EDITOR=hx
296 export HGEDITOR=hx
292 297
293 export RIPGREP_CONFIG_PATH=$HOME/.config/ripgrep/ripgreprc 298 export RIPGREP_CONFIG_PATH=$HOME/.config/ripgrep/ripgreprc
294 export BAT_CONFIG_PATH=$HOME/.config/bat/config 299 export BAT_CONFIG_PATH=$HOME/.config/bat/config
295 300
296 export PS_FORMAT='pid,pgid,state,start_time,%cpu,command' 301 export PS_FORMAT='pid,pgid,state,start_time,%cpu,command'
311 [ -f ~/.zshrc.local ] && source ~/.zshrc.local 316 [ -f ~/.zshrc.local ] && source ~/.zshrc.local
312 317
313 eval "$($HOME/bin/rtx activate zsh)" 318 eval "$($HOME/bin/rtx activate zsh)"
314 eval "$($HOME/bin/rtx hook-env)" 319 eval "$($HOME/bin/rtx hook-env)"
315 320
316 export SUDO_EDITOR=$(which nvim) 321 export SUDO_EDITOR=$(which hx)
317 eval "$(direnv hook zsh)" 322 eval "$(direnv hook zsh)"
318 323
319 zstyle ':completion:*:descriptions' format '[%d]' 324 zstyle ':completion:*:descriptions' format '[%d]'
320 325
321 zsh-defer source ~/.zsh/zsh-history-substring-search.zsh 326 zsh-defer source ~/.zsh/zsh-history-substring-search.zsh