Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # patch for `service` completion so it also provides completion for ubuntu upstart init jobs, obviously only relevent to zsh users on Ubuntu
- % diff -Naur _services.orig /usr/share/zsh/functions/Completion/Unix/_services
- --- _services.orig
- +++ /usr/share/zsh/functions/Completion/Unix/_services
- @@ -30,6 +30,7 @@
- fi
- done
- _wanted services expl service compadd "$@" - $dir/*(-*:t) &&
- + _wanted services expl service compadd "$@" - /etc/init/*.conf(-.:t:r) &&
- ret=0
- fi
- # before
- % service w<tab>
- Completing service name
- cups-browsed networking vboxweb-service
- # after :)
- % service w<tab>
- Completing service name
- cups-browsed hwclock hwclock-save networking network-interface network-interface-container
- network-interface-security network-manager passwd plymouth-shutdown shutdown strongswan
- teamviewerd ufw usb-modeswitch-upstart vboxweb-service wait-for-state whoopsie
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement