mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
will do auto-rehash
This commit is contained in:
parent
913ba592a1
commit
adcf4ce82c
1 changed files with 10 additions and 0 deletions
10
lib/rehash.zsh
Normal file
10
lib/rehash.zsh
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
#-*- sh -*-
|
||||||
|
|
||||||
|
|
||||||
|
## will rehash
|
||||||
|
_force_rehash() {
|
||||||
|
(( CURRENT == 1 )) && rehash
|
||||||
|
return 1 # Because we didn't really complete anything
|
||||||
|
}
|
||||||
|
|
||||||
|
zstyle ':completion:::::' completer _force_rehash _complete _approximate
|
||||||
Loading…
Add table
Add a link
Reference in a new issue