zsh-users
 help / color / mirror / code / Atom feed
* How to override builtin Completion file?
@ 2022-07-18 12:50 Ahmad Ismail
  2022-07-18 16:18 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Ismail @ 2022-07-18 12:50 UTC (permalink / raw)
  To: Zsh Users

[-- Attachment #1: Type: text/plain, Size: 641 bytes --]

I have made some modifications in _stow completion file.

I want to override /usr/share/zsh/functions/Completion/Unix/_stow with
$HOME/.dotfiles/.resources/zsh-dotfiles/zsh-custom-completions/_stow

I have put the following on my .zshrc

fpath=($HOME/.dotfiles/.resources/zsh-dotfiles/zsh-custom-completions
$fpath)

print -rl -- $fpath output shows that the path is added.

Still it is calling the builtin completion file instead of the new
completion file.

What can I do?

*P.S.*
In case someone is interested, I have replaced (line 10)

local -a stow_pkg_list=( $stow_dir/*(-/N:t) )

with

local -a stow_pkg_list=( $stow_dir/.*(-/N:t) )

[-- Attachment #2: Type: text/html, Size: 834 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to override builtin Completion file?
  2022-07-18 12:50 How to override builtin Completion file? Ahmad Ismail
@ 2022-07-18 16:18 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2022-07-18 16:18 UTC (permalink / raw)
  To: Ahmad Ismail; +Cc: Zsh Users

On Mon, Jul 18, 2022 at 5:51 AM Ahmad Ismail <ismail783@gmail.com> wrote:
>
> fpath=($HOME/.dotfiles/.resources/zsh-dotfiles/zsh-custom-completions $fpath)
>
> Still it is calling the builtin completion file instead of the new completion file.

Make sure you have changed $fpath before you run compinit.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-18 16:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-18 12:50 How to override builtin Completion file? Ahmad Ismail
2022-07-18 16:18 ` Bart Schaefer

Code repositories for project(s) associated with this inbox:

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).