Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge _daemons into .zshrc

  • Loading branch information...
commit c52d0fb6abb7ad425e04e969ea36737b1944577d 1 parent d687369
@tpope authored
Showing with 4 additions and 20 deletions.
  1. +0 −19 .zsh/functions/_daemons
  2. +2 −0  .zshrc
  3. +2 −1  bin/tpope-config
View
19 .zsh/functions/_daemons
@@ -1,19 +0,0 @@
-#compdef start stop restart reload force-reload runcontrol rc rclink
-
-local expl tmp offset ret=1
-#echo $CURRENT >/tmp/words.log
-
-case $service in
-start|stop|restart|reload|force-reload|rclink)
-_wanted daemons expl daemon compadd /etc/init.d/*[^~]~*.dpkg-*(x:t) && ret=0
-;;
-runcontrol|rc)
-if [[ $(((CURRENT - offset) % 2)) = 0 ]]; then
- tmp=(start stop restart reload force-reload)
- _describe 'runcontrol command' tmp -- && ret=0
-else
- _wanted daemons expl daemon compadd /etc/init.d/*[^~]~*.dpkg-*(x:t) && ret=0
-fi
-;;
-esac
-return $ret
View
2  .zshrc
@@ -250,6 +250,8 @@ compinit -u
compdef '_arguments "-dump[dump to stdout]" "-T[force console]" "-G[force gui]" :url:_webbrowser' b sensible-browser
compdef 'local expl; _description files expl "picture file"; _files "$expl[@]" -g "*.(#i)(png|gif|jpeg|jpg|tiff|tif|pbm|pgm|ppm|xbm|xpm|ras(|t)|tga|rle|rgb|bmp|pcx|fits|pm)(-.)"' feh
+compdef '_arguments "1:command:(start stop force-stop restart reload force-reload status)" "2:service:_services"' runcontrol rc
+compdef '_services' start stop restart reload force-reload rclink
# }}}1
# Mime {{{1
View
3  bin/tpope-config
@@ -4,7 +4,7 @@
base_files="\
.shrc .profile .bashrc .bash_profile .bash_logout \
.cshrc .login .logout \
-.zshenv .zshrc .zlogin .zlogout .zsh/functions/_tpope .zsh/functions/_daemons \
+.zshenv .zshrc .zlogin .zlogout .zsh/functions/_tpope \
.inputrc .dir_colors \
.screenrc .tmux.conf .terminfo/s/screen-256color \
.terminfo/x/xterm-256color .terminfo/r/rxvt-unicode \
@@ -102,6 +102,7 @@ case "$command" in
.terminfo/x/78 \
.vim/after/syntax/dosbatch.vim \
.zsh/functions/_git-trac .zsh/functions/_editor .zsh/functions/_sb \
+ .zsh/functions/_daemons \
.ssh/authorized_keys2 \
bin/sync-tpope
;;
Please sign in to comment.
Something went wrong with that request. Please try again.