changeset 876:8589883596fd

fix: remove pathdirs option to avoid slow path completions see: https://stackoverflow.com/questions/76746392/why-is-my-zsh-tab-completion-slow-on-commands-but-not-directories > Perform a path search even on command names with slashes in them. > Thus if ?/usr/local/bin? is in the user?s path, and he or she types ?X11/xinit?, the command ?/usr/local/bin/X11/xinit? will be executed (assuming it exists). > Commands explicitly beginning with ?/?, ?./? or ?../? are not subject to the path search. This also applies to the ?.? and source builtins.
author Zeger Van de Vannet <zeger@vandevan.net>
date Thu, 25 Apr 2024 10:05:40 +0200
parents 75fe7fda0948
children 56e26ce1a5ce 8284bef42d1b
files dot_zshrc
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/dot_zshrc	Sun Apr 21 18:47:59 2024 +0200
+++ b/dot_zshrc	Thu Apr 25 10:05:40 2024 +0200
@@ -105,6 +105,7 @@
 setopt pushdsilent
 setopt nobeep
 setopt notify
+unsetopt pathdirs
 REPORTTIME=5
 
 zle_highlight=('paste:none')
@@ -242,12 +243,6 @@
   while "$@"; do :; done
 }
 
-# Suffix aliases
-alias -s py=nvim
-alias -s sv=nvim
-alias -s v=nvim
-alias -s vhd=nvim
-alias -s sh=nvim
 
 setopt extendedglob
 typeset -Ag abbreviations