Permalink
Browse files

Merge browser completion into .zshrc

  • Loading branch information...
tpope committed Aug 4, 2012
1 parent 6a3e8f3 commit 2d85c3d1ceebe3ba292cbd87adc9c251127b1c61
Showing with 3 additions and 8 deletions.
  1. +0 −7 .zsh/functions/_sb
  2. +2 −0 .zshrc
  3. +1 −1 bin/tpope
View
@@ -1,7 +0,0 @@
-#compdef b sb sensible-browser
-
-_arguments \
- '-dump[dump to stdout]' \
- '-T[force console]' \
- '-G[force gui]' \
- ':url:_webbrowser'
View
2 .zshrc
@@ -247,6 +247,8 @@ zstyle :compinstall filename "$HOME/.zshrc"
autoload -Uz compinit
compinit -u
# End of lines added by compinstall
+
+compdef '_arguments "-dump[dump to stdout]" "-T[force console]" "-G[force gui]" :url:_webbrowser' b sb 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
# }}}1
View
@@ -151,7 +151,7 @@ do_clean() {
if [ ! -d "$HOME/.trash" ]; then
mkdir "$HOME/.trash" && chmod 0700 "$HOME/.trash"
fi
- rm -rf "$HOME/.fvwm/FvwmScript-Alert" "$HOME/.fvwm/FvwmScript-Date" "$HOME/.fvwm/FvwmScript-Time" "$HOME/bin/hostinfo" "$HOME/.git_template/info/exclude" "$HOME/.fvwm/.fvwm-menu-headlines/extension.pl" "$HOME/.Eterm" "$HOME/.terminfo/E" "$HOME/.terminfo/x/78" "$HOME/.vim/after/syntax/dosbatch.vim" "$HOME/.zsh/functions/_git-trac" "$HOME/.zsh/functions/_editor" "$HOME/.ssh/authorized_keys2"
+ rm -rf "$HOME/.fvwm/FvwmScript-Alert" "$HOME/.fvwm/FvwmScript-Date" "$HOME/.fvwm/FvwmScript-Time" "$HOME/bin/hostinfo" "$HOME/.git_template/info/exclude" "$HOME/.fvwm/.fvwm-menu-headlines/extension.pl" "$HOME/.Eterm" "$HOME/.terminfo/E" "$HOME/.terminfo/x/78" "$HOME/.vim/after/syntax/dosbatch.vim" "$HOME/.zsh/functions/_git-trac" "$HOME/.zsh/functions/_editor" "$HOME/.ssh/authorized_keys2" "$HOME/.zsh/functions/_sb"
return 0
}

0 comments on commit 2d85c3d

Please sign in to comment.