[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    ZSH completion for kdesrc-build
From:       Ivan Čukić <ivan.cukic () kde ! org>
Date:       2014-01-11 10:38:25
Message-ID: CAFkAKBx+LPLEJ1Oo-zzJ5EsKU4FswWcKegqRHYucR35zbYqEHw () mail ! gmail ! com
[Download RAW message or body]

Hi all,

I wanted to post this on the blog, but my server has some issues lately, so
I decided this is the best alternative.

Some people at Tokamak desired to have completion for kdesrc-build, so I
made a very dirty and ugly completion function for it.

--
function _ksrccomp() {
  reply=(`grep identifier kde_projects.xml | sed 's/^[^"]*"//' | sed
's/".*//' | sort -u`)
}

compctl -K _ksrccomp ksb

alias ksb='./kdesrc-build'
--

I use ksb as the alias for ./kdesrc-build - shorter to write. This can be
adapted to work for the regular command as well. It should be possible to
adapt this for BASH as well.

Cheerio,
Ivan

-- 
Cheerio,
Ivan

--
While you were hanging yourself on someone else's words
Dying to believe in what you heard
I was staring straight into the shining sun

[Attachment #3 (text/html)]

<div dir="ltr"><div><div>Hi all,<br><br></div>I wanted to post this on the blog, but \
my server has some issues lately, so I decided this is the best \
alternative.<br><br></div>Some people at Tokamak desired to have completion for \
kdesrc-build, so I made a very dirty and ugly completion function for it.<br> \
<div><br>--<br>function _ksrccomp() {<br>   reply=(`grep identifier kde_projects.xml \
| sed &#39;s/^[^&quot;]*&quot;//&#39; | sed &#39;s/&quot;.*//&#39; | sort \
-u`)<br>}<br><br>compctl -K _ksrccomp ksb<br><br>alias \
                ksb=&#39;./kdesrc-build&#39;<br>
--<br><br></div><div>I use ksb as the alias for ./kdesrc-build - shorter to write. \
This can be adapted to work for the regular command as well. It should be possible to \
adapt this for BASH as well.<br clear="all"></div><div> \
<div><div><br></div><div>Cheerio,<br></div><div>Ivan<br></div><div><br>-- \
<br>Cheerio,<br>Ivan<br><br>--<br>While you were hanging yourself on someone \
else&#39;s words<br>Dying to believe in what you heard<br>I was staring straight into \
the shining sun </div></div></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic