X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=zsh_people%2Fstrcat%2Fzshcompctl;fp=zsh_people%2Fstrcat%2Fzshcompctl;h=0000000000000000000000000000000000000000;hb=5cb88f9fb34ecec3c6fdf321e4f5842da0102ef1;hp=b3ba3923e500093f39b7164bd62d97506dfea364;hpb=570683afd3efabdf224dbc2fcebf9467a3653638;p=zsh-lovers.git diff --git a/zsh_people/strcat/zshcompctl b/zsh_people/strcat/zshcompctl deleted file mode 100644 index b3ba392..0000000 --- a/zsh_people/strcat/zshcompctl +++ /dev/null @@ -1,83 +0,0 @@ -# Tab host completion for programs -compctl -k ping telnet ncftp host nslookup irssi rlogin ftp - -# Make completion (yeah im getting fucking lazy) -compile=(install clean remove uninstall deinstall) -compctl -k compile make - -# some (useful) completions - compctl -j -P '%' fg jobs disown - compctl -g '*.(gz|z|Z|t[agp]z|tarZ|tz)' + -g '*(-/)' gunzip gzcat zcat - compctl -g '*.tar.Z *.tar.gz *.tgz *.zip *.ZIP *.tar.bz2 *.tar' + -g '*' show-archive simple-extract - compctl -g '*.(mp3|MP3|ogg|OGG|temp|TEMP)' + -g '*(-/)' mpg123 xmms - compctl -g "*.html *.htm" + -g "*(-/) .*(-/)" + -H 0 '' w3m lynx links wget opera - compctl -g '*.(pdf|PDF)' + -g '*(-/)' xpdf - compctl -g '*(-/)' + -g '.*(/)' cd chdir dirs pushd rmdir dircmp cl tree - compctl -g '*.(jpg|JPG|jpeg|JPEG|gif|GIF|png|PNG|bmp)' + -g '*(-/)' gimp xv pornview - compctl -g '*.(e|E|)(ps|PS)' + -g '*(-/)' gs ghostview nup psps pstops psmulti psnup psselect gv - compctl -g '*.tex*' + -g '*(-/)' {,la,gla,ams{la,},{g,}sli}tex texi2dvi - compctl -g '*.dvi' + -g '*(-/)' dvips - compctl -g '/var/db/pkg/*(/:t)' pkg_delete pkg_info - compctl -g '[^.]*(-/) *.(c|C|cc|c++|cxx|cpp)' + -f cc CC c++ gcc g++ - compctl -g '[^.]*(-/) *(*)' + -f strip ldd gdb - compctl -s '$(<~/.vim/tags)' vimhelp - compctl -s '/var/log/packages/*(.:t:r)' slapt-get - -# 'compctl' with regex - # kill takes signal names as the first argument after -, but job names after % - compctl -j -P % -x 's[-] p[1]' -k signals -- kill - # gzip files, but gzip -d only gzipped or compressed files - compctl -x 'R[-*[dt],^*]' -g '*.(gz|z|Z|t[agp]z|tarZ|tz)(D)' + -g '*(-/D)' + -f - 's[]' -g '^*(.(tz|gz|t[agp]z|tarZ|zip|ZIP|jpg|JPG|gif|GIF|[zZ])|[~#])' + -f -- gzip - # read '/etc/shells' to complete 'chsh -s' - compctl -u -x 'c[-1,-s]' -s '$( 980827 -# This is damn funky. I'm going to do something similar for pinfo, -# hopefully. -#-------------------------------------------------- -compctl -f -x 'S[1][2][3][4][5][6][7][8][9]' -k '(1 2 3 4 5 6 7 8 9)' \ - - 'R[[1-9nlo]|[1-9](|[a-z]),^*]' -K 'match-man' \ - - 's[-M],c[-1,-M]' -g '*(-/)' \ - - 's[-P],c[-1,-P]' -c \ - - 's[-S],s[-1,-S]' -k '( )' \ - - 's[-]' -k '(a d f h k t M P)' \ - - 'p[1,-1]' -c + -K 'match-man' \ - -- vman pinfo -#-------------------------------------------------- -# setopt SH_WORD_SPLIT function man_var () { -# man_pages=( $^manpath/man*/*(N:t:r:r) ) -# compctl -k man_pages man -# reply=( $man_pages ) -# } -# compctl -K man_var vman pinfo; man_pages=() -#--------------------------------------------------