You are not logged in.

#1 2015-11-22 00:05:50

XG SiNGH
Member
From: London, UK
Registered: 2015-05-20
Posts: 6
Website

ZSH Completion for 'systemctl --user' Is Now Randomly Missing Units

Hiya,

I've been using zsh, & it's completion for 'systemctl' & 'systemctl --user' subcommands for a long while. 

Then, one day suddenly / randomly, completion suggestions for 'systemctl --user' subcommands (e.g. 'systemctl --user restart TAB TAB') has starting missing out most (not all) of my custom user units (in ~/.config/systemd/user)

I've researched a lot (hours over the last 2 months) & but still not found anything useful at all sad

I've tried everything I could think of to fix it.

I've tried deleting all my custom unit files, & selectively adding some (with 'systemctl --user daemon-reload' used generously to refresh the state).

It does show some of my units.  However, this behaviour is consistent (of which units are always working / shown, & which are not)

I'm sure my unit files are good, because they all worked flawlessly before randomly going weird with zsh.

NOTE; bash's completion still works perfectly.  It's just zsh that has gone weird...  (further implying my unit files / permissions, etc are all good)

Any help appreciated - it's making it cumbersome to manage my system / units sad

Thank you!

Last edited by XG SiNGH (2015-11-22 00:07:17)


BOiNG BOiNG
-- HEAD KANGAROO
KangarooCreativeTeam.com

Offline

#2 2015-11-22 00:08:34

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: ZSH Completion for 'systemctl --user' Is Now Randomly Missing Units

Works fine here with Zsh 5.1.1-2

Do you run vanilla Zsh, or have you installed something like Oh-my-zsh?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-11-22 00:50:46

XG SiNGH
Member
From: London, UK
Registered: 2015-05-20
Posts: 6
Website

Re: ZSH Completion for 'systemctl --user' Is Now Randomly Missing Units

Hiya - thanks for the (FAST) reply. 

I forgot to mention: I too am using zsh 5.1.1-2, & also Oh-My-ZSH.

However, I've created a minimal vanilla .zshrc (via it's own fresh-install wizard), which produces only this as content:

# The following lines were added by compinstall
zstyle :compinstall filename '/home/username/.zshrc'

autoload -Uz compinit
compinit
# End of lines added by compinstall

(so totally not using oh-my-zsh)

However; it's still not working sad

O_O

Last edited by XG SiNGH (2015-11-22 00:54:14)


BOiNG BOiNG
-- HEAD KANGAROO
KangarooCreativeTeam.com

Offline

#4 2015-11-22 01:39:56

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: ZSH Completion for 'systemctl --user' Is Now Randomly Missing Units

That's a shame: I would have totally blamed OMZ. The number of people that show with issues here that trace back to that clusterfuck...

Just to be sure, make sure it isn't sourcing some crap into your env.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB