Change order of autocompletion loading for ZSH
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
Trying to implement my own flag completion for java I broke the existing one. :-)
What I've done is (among others for sure) unfunction
and autoload
calls, to see if my module worked. I think it changed the order of loading autocompletion modules.
So, how to bring it back the way it was? Because previously _java was loaded first, now it's _java_class and I prefer the other way around. :-)
Files in question are both in standard Unix completion:
â ~ ll /usr/share/zsh/functions/Completion/Unix/_java* [% 16:39:51]
-rw-r--r-- 1 root root 25K lut 7 2016 /usr/share/zsh/functions/Completion/Unix/_java
-rw-r--r-- 1 root root 693 lut 7 2016 /usr/share/zsh/functions/Completion/Unix/_java_class
Ubuntu 16.04. I'm using oh-my-zsh but I think it's zsh only, since I've not played around with oh-my-zsh here but with $fpath
(just through export, so for one session) and unfunction
and autoload
.
zsh autocomplete oh-my-zsh
add a comment |Â
up vote
0
down vote
favorite
Trying to implement my own flag completion for java I broke the existing one. :-)
What I've done is (among others for sure) unfunction
and autoload
calls, to see if my module worked. I think it changed the order of loading autocompletion modules.
So, how to bring it back the way it was? Because previously _java was loaded first, now it's _java_class and I prefer the other way around. :-)
Files in question are both in standard Unix completion:
â ~ ll /usr/share/zsh/functions/Completion/Unix/_java* [% 16:39:51]
-rw-r--r-- 1 root root 25K lut 7 2016 /usr/share/zsh/functions/Completion/Unix/_java
-rw-r--r-- 1 root root 693 lut 7 2016 /usr/share/zsh/functions/Completion/Unix/_java_class
Ubuntu 16.04. I'm using oh-my-zsh but I think it's zsh only, since I've not played around with oh-my-zsh here but with $fpath
(just through export, so for one session) and unfunction
and autoload
.
zsh autocomplete oh-my-zsh
Usually one leaves the system$fpath
directories alone; instead, put any new completions in a directory listed first in$fpath
. Not sure why you'd need to fiddle withunfunction
andautoload
...
â thrig
Oct 8 '17 at 15:32
For debugging of my _java_flags completion @thrig as per github.com/zsh-users/zsh-completions/blob/master/â¦
â LIttle Ancient Forest Kami
Oct 8 '17 at 15:35
Also, it was done via export so just for a session.
â LIttle Ancient Forest Kami
Oct 8 '17 at 15:44
If you've been messing around in the vendor space, one way to restore The Way Things Were would be to uninstall the package, delete anything left behind (in particular in that/usr/share/zsh/functions
dir), and reinstall thezsh
package.
â thrig
Oct 9 '17 at 13:54
I'll keep that in mind - but for later. The vendor space...?
â LIttle Ancient Forest Kami
Oct 13 '17 at 13:59
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Trying to implement my own flag completion for java I broke the existing one. :-)
What I've done is (among others for sure) unfunction
and autoload
calls, to see if my module worked. I think it changed the order of loading autocompletion modules.
So, how to bring it back the way it was? Because previously _java was loaded first, now it's _java_class and I prefer the other way around. :-)
Files in question are both in standard Unix completion:
â ~ ll /usr/share/zsh/functions/Completion/Unix/_java* [% 16:39:51]
-rw-r--r-- 1 root root 25K lut 7 2016 /usr/share/zsh/functions/Completion/Unix/_java
-rw-r--r-- 1 root root 693 lut 7 2016 /usr/share/zsh/functions/Completion/Unix/_java_class
Ubuntu 16.04. I'm using oh-my-zsh but I think it's zsh only, since I've not played around with oh-my-zsh here but with $fpath
(just through export, so for one session) and unfunction
and autoload
.
zsh autocomplete oh-my-zsh
Trying to implement my own flag completion for java I broke the existing one. :-)
What I've done is (among others for sure) unfunction
and autoload
calls, to see if my module worked. I think it changed the order of loading autocompletion modules.
So, how to bring it back the way it was? Because previously _java was loaded first, now it's _java_class and I prefer the other way around. :-)
Files in question are both in standard Unix completion:
â ~ ll /usr/share/zsh/functions/Completion/Unix/_java* [% 16:39:51]
-rw-r--r-- 1 root root 25K lut 7 2016 /usr/share/zsh/functions/Completion/Unix/_java
-rw-r--r-- 1 root root 693 lut 7 2016 /usr/share/zsh/functions/Completion/Unix/_java_class
Ubuntu 16.04. I'm using oh-my-zsh but I think it's zsh only, since I've not played around with oh-my-zsh here but with $fpath
(just through export, so for one session) and unfunction
and autoload
.
zsh autocomplete oh-my-zsh
zsh autocomplete oh-my-zsh
edited Oct 8 '17 at 15:45
asked Oct 8 '17 at 15:22
LIttle Ancient Forest Kami
273213
273213
Usually one leaves the system$fpath
directories alone; instead, put any new completions in a directory listed first in$fpath
. Not sure why you'd need to fiddle withunfunction
andautoload
...
â thrig
Oct 8 '17 at 15:32
For debugging of my _java_flags completion @thrig as per github.com/zsh-users/zsh-completions/blob/master/â¦
â LIttle Ancient Forest Kami
Oct 8 '17 at 15:35
Also, it was done via export so just for a session.
â LIttle Ancient Forest Kami
Oct 8 '17 at 15:44
If you've been messing around in the vendor space, one way to restore The Way Things Were would be to uninstall the package, delete anything left behind (in particular in that/usr/share/zsh/functions
dir), and reinstall thezsh
package.
â thrig
Oct 9 '17 at 13:54
I'll keep that in mind - but for later. The vendor space...?
â LIttle Ancient Forest Kami
Oct 13 '17 at 13:59
add a comment |Â
Usually one leaves the system$fpath
directories alone; instead, put any new completions in a directory listed first in$fpath
. Not sure why you'd need to fiddle withunfunction
andautoload
...
â thrig
Oct 8 '17 at 15:32
For debugging of my _java_flags completion @thrig as per github.com/zsh-users/zsh-completions/blob/master/â¦
â LIttle Ancient Forest Kami
Oct 8 '17 at 15:35
Also, it was done via export so just for a session.
â LIttle Ancient Forest Kami
Oct 8 '17 at 15:44
If you've been messing around in the vendor space, one way to restore The Way Things Were would be to uninstall the package, delete anything left behind (in particular in that/usr/share/zsh/functions
dir), and reinstall thezsh
package.
â thrig
Oct 9 '17 at 13:54
I'll keep that in mind - but for later. The vendor space...?
â LIttle Ancient Forest Kami
Oct 13 '17 at 13:59
Usually one leaves the system
$fpath
directories alone; instead, put any new completions in a directory listed first in $fpath
. Not sure why you'd need to fiddle with unfunction
and autoload
...â thrig
Oct 8 '17 at 15:32
Usually one leaves the system
$fpath
directories alone; instead, put any new completions in a directory listed first in $fpath
. Not sure why you'd need to fiddle with unfunction
and autoload
...â thrig
Oct 8 '17 at 15:32
For debugging of my _java_flags completion @thrig as per github.com/zsh-users/zsh-completions/blob/master/â¦
â LIttle Ancient Forest Kami
Oct 8 '17 at 15:35
For debugging of my _java_flags completion @thrig as per github.com/zsh-users/zsh-completions/blob/master/â¦
â LIttle Ancient Forest Kami
Oct 8 '17 at 15:35
Also, it was done via export so just for a session.
â LIttle Ancient Forest Kami
Oct 8 '17 at 15:44
Also, it was done via export so just for a session.
â LIttle Ancient Forest Kami
Oct 8 '17 at 15:44
If you've been messing around in the vendor space, one way to restore The Way Things Were would be to uninstall the package, delete anything left behind (in particular in that
/usr/share/zsh/functions
dir), and reinstall the zsh
package.â thrig
Oct 9 '17 at 13:54
If you've been messing around in the vendor space, one way to restore The Way Things Were would be to uninstall the package, delete anything left behind (in particular in that
/usr/share/zsh/functions
dir), and reinstall the zsh
package.â thrig
Oct 9 '17 at 13:54
I'll keep that in mind - but for later. The vendor space...?
â LIttle Ancient Forest Kami
Oct 13 '17 at 13:59
I'll keep that in mind - but for later. The vendor space...?
â LIttle Ancient Forest Kami
Oct 13 '17 at 13:59
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f396852%2fchange-order-of-autocompletion-loading-for-zsh%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Usually one leaves the system
$fpath
directories alone; instead, put any new completions in a directory listed first in$fpath
. Not sure why you'd need to fiddle withunfunction
andautoload
...â thrig
Oct 8 '17 at 15:32
For debugging of my _java_flags completion @thrig as per github.com/zsh-users/zsh-completions/blob/master/â¦
â LIttle Ancient Forest Kami
Oct 8 '17 at 15:35
Also, it was done via export so just for a session.
â LIttle Ancient Forest Kami
Oct 8 '17 at 15:44
If you've been messing around in the vendor space, one way to restore The Way Things Were would be to uninstall the package, delete anything left behind (in particular in that
/usr/share/zsh/functions
dir), and reinstall thezsh
package.â thrig
Oct 9 '17 at 13:54
I'll keep that in mind - but for later. The vendor space...?
â LIttle Ancient Forest Kami
Oct 13 '17 at 13:59