Thread overview | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
September 12, 2010 bash completion for dmd and rdmd | ||||
---|---|---|---|---|
| ||||
It's ugly but it seems to work: http://dl.dropbox.com/u/6777848/d-completion.sh Put it in /etc/bash_completion.d/ or (preferably) invoke it from ~/.bashrc or ~/.bash_profile: . d-completion.sh It will enable autocomplete for dmd and rdmd in bash. You may need to install the bash-completion package of your distro. |
September 12, 2010 Re: bash completion for dmd and rdmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lutger | On 9/12/10 10:48 CDT, Lutger wrote:
> It's ugly but it seems to work: http://dl.dropbox.com/u/6777848/d-completion.sh
>
> Put it in /etc/bash_completion.d/ or (preferably) invoke it from ~/.bashrc or
> ~/.bash_profile:
>
> .. d-completion.sh
>
> It will enable autocomplete for dmd and rdmd in bash. You may need to install
> the bash-completion package of your distro.
Cool! This should be on D's website. Any zsh completion experts to provide something similar for zsh?
Andrei
|
September 12, 2010 Re: bash completion for dmd and rdmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lutger | "Lutger" <lutger.blijdestijn@gmail.com> wrote in message news:i6isov$v0h$1@digitalmars.com... > It's ugly but it seems to work: http://dl.dropbox.com/u/6777848/d-completion.sh > > Put it in /etc/bash_completion.d/ or (preferably) invoke it from ~/.bashrc > or > ~/.bash_profile: > > . d-completion.sh > > It will enable autocomplete for dmd and rdmd in bash. You may need to > install > the bash-completion package of your distro. Ahh, cool! I'd often wondered how autocomplete in bash often seems to work even for non-files. (Yea, not exactly a Unix-guru here ;) ) |
September 12, 2010 Re: bash completion for dmd and rdmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lutger Attachments:
| On Sun, 2010-09-12 at 17:48 +0200, Lutger wrote: > It's ugly but it seems to work: http://dl.dropbox.com/u/6777848/d-completion.sh > > Put it in /etc/bash_completion.d/ or (preferably) invoke it from ~/.bashrc or ~/.bash_profile: > > . d-completion.sh > > It will enable autocomplete for dmd and rdmd in bash. You may need to install the bash-completion package of your distro. Any chance of putting it into DVCS so that it can be evolved? Bazaar/Launchpad, Mercurial/BitBucket, Git/GitHub are good options. -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder@ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel@russel.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder |
September 12, 2010 Re: bash completion for dmd and rdmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On Mon, 13 Sep 2010 01:54:16 +0900, Andrei Alexandrescu <SeeWebsiteForEmail@erdani.org> wrote: > On 9/12/10 10:48 CDT, Lutger wrote: >> It's ugly but it seems to work: http://dl.dropbox.com/u/6777848/d-completion.sh >> >> Put it in /etc/bash_completion.d/ or (preferably) invoke it from ~/.bashrc or >> ~/.bash_profile: >> >> .. d-completion.sh >> >> It will enable autocomplete for dmd and rdmd in bash. You may need to install >> the bash-completion package of your distro. > > Cool! This should be on D's website. Any zsh completion experts to provide something similar for zsh? > I'm not a zsh completion experts, but I use following script. http://dl.dropbox.com/u/374829/_dmd |
September 12, 2010 Re: bash completion for dmd and rdmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | Andrei Alexandrescu wrote: > On 9/12/10 10:48 CDT, Lutger wrote: >> It's ugly but it seems to work: http://dl.dropbox.com/u/6777848/d-completion.sh >> >> Put it in /etc/bash_completion.d/ or (preferably) invoke it from ~/.bashrc or >> ~/.bash_profile: >> >> .. d-completion.sh >> >> It will enable autocomplete for dmd and rdmd in bash. You may need to install the bash-completion package of your distro. > > Cool! This should be on D's website. Any zsh completion experts to provide something similar for zsh? > > Andrei Thanks. As per suggestion of Russel Winder I created a github account: http://github.com/Lutger/d_utils I've added completion for the linker. The script should be cleaned up though before putting it on the D website. I'll try to do it but I don't know bash very well, so it takes some time. |
September 14, 2010 Re: bash completion for dmd and rdmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lutger | Al 12/09/10 17:48, En/na Lutger ha escrit: > It's ugly but it seems to work: http://dl.dropbox.com/u/6777848/d-completion.sh > > Put it in /etc/bash_completion.d/ or (preferably) invoke it from ~/.bashrc or > ~/.bash_profile: > > . d-completion.sh > > It will enable autocomplete for dmd and rdmd in bash. You may need to install > the bash-completion package of your distro. > Can I add it on the next deb/rpm packages? -- Jordi Sayol |
September 15, 2010 Re: bash completion for dmd and rdmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jordi Sayol | Jordi Sayol wrote: > Al 12/09/10 17:48, En/na Lutger ha escrit: >> It's ugly but it seems to work: http://dl.dropbox.com/u/6777848/d-completion.sh >> >> Put it in /etc/bash_completion.d/ or (preferably) invoke it from ~/.bashrc or >> ~/.bash_profile: >> >> . d-completion.sh >> >> It will enable autocomplete for dmd and rdmd in bash. You may need to install the bash-completion package of your distro. >> > > Can I add it on the next deb/rpm packages? > Of course! But please use this version: http://github.com/Lutger/d_utils I'll be happy to know if there are any errors, it's mostly taken from existing completion scripts. I don't think such a small script needs a license but I'll put one in if needed. |
Copyright © 1999-2021 by the D Language Foundation