Re: [PATCH] Automatically autoload bashcompinit for ZSH, when needed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 27, 2011 at 4:11 AM, Felipe Contreras
<felipe.contreras@xxxxxxxxx> wrote:
> On Tue, Apr 26, 2011 at 11:28 PM, Marius Storm-Olsen
> <marius@xxxxxxxxxxxxxxx> wrote:
>> If bashcompinit has not already been autoloaded, do so
>> automatically, as it is required to properly parse the
>> git-completion file with ZSH.
>>
>> Signed-off-by: Marius Storm-Olsen <mstormo@xxxxxxxxx>
>> ---
>
>> +if [[ -n ${ZSH_VERSION-} ]]; then
>> + Â Â Â if ! bashcompinit >/dev/null 2>&1; then
>> + Â Â Â Â Â Â Â autoload -U bashcompinit
>> + Â Â Â Â Â Â Â bashcompinit
>> + Â Â Â fi
>
> How about this instead?
> autoload -UX bashcompinit && bashcompinit

Er, autoload -U +X.

-- 
Felipe Contreras
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]