Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: execution in zshrc
- X-seq: zsh-users 23391
- From: "Pol (Admin)" <xtekhne@xxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: execution in zshrc
- Date: Fri, 11 May 2018 14:30:32 +0200
- Cc: zsh-users@xxxxxxx, Paolo Pumilia <paolo.pumilia@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=vGY96fq8eOEPc7XEZ32ECcyb3IfaeYzw+5hW8VuP478=; b=QqJLzQdO8D3Gp9/zZN66Op8cZQ2dY+/FyrY9fKBU6I0817xeAiJMQHsozw48VktQnA QPNSNJh6tFpEaeI2lzTnNUlM+2owRJ5FQErtRsBW0qCHSENmCQlY9YfCWtFXjSC8VMY1 hu530WGTmwyG/hHVJZI16fs73T3qcto2cnc5v1vPkFsp6cpNo/Nq2GiI1VLfnvPRT8aN igHO/5b8RxFzYY5+0D6nDVW9bwrFioMWHC7vtCAIbI/p+8M2rZBpuBHcrP31wQGivHVS Sp6Zs6goS5Kwdnq3THfthSw4EM3GgUvoPkq5TNHDAcZR9epcPvTCldb+lH9fmqRSp50q JP3A==
- In-reply-to: <20180511123134.4108dacb@camnpupstephen.cam.scsc.local>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CGME20180511100941epcas3p2a7f5d1bcbf7649f3dd5be354200d3858@epcas3p2.samsung.com> <CABkwP4fWp2mEhzG7wHmxJ7GKy9HR5_uwSb7R0gmdcqjHzvGajQ@mail.gmail.com> <20180511123134.4108dacb@camnpupstephen.cam.scsc.local>
- Sender: paolo.m.pumilia.gnarini@xxxxxxxxx
That works, thank you, but something is still wrong in my scripts,
My ubuntu_system function cannot be found at the start, (yet, noo
problem as my zshrc is sourced from terminal)
Here enclosed my function
thank you
paolo
-- my zsh function -
ubuntu_system () {
alias sepg='apt-cache search --names-only '
alias sapg='apt-cache search '
alias saipg='apt-cache search --names-only --installed '
echo "ubuntu system aliases loaded"
}
--- end
On Fri, May 11, 2018 at 1:31 PM, Peter Stephenson
<p.stephenson@xxxxxxxxxxx> wrote:
> On Fri, 11 May 2018 12:07:54 +0200
> "Pol (Admin)" <xtekhne@xxxxxxxxx> wrote:
>> Here enclosed, my script from my zshrc file, to select current running
>> linux udistribtion.
>> At start (e.g. starting a konsole session) it cannot match any linux
>> brand (although 'uname -v' works). therefore exiting with 'unknown
>> distribution'.
>> Yet, sourcing /etc/zshrc at terminal prompt, the correct runnig
>> linux distibution is found.
>>
>> Any hints to fix my script?
>
> That means some option is being set in /etc/zshrc that affects the
> running of the code.
>
> It looks like this is probably
>
> setopt extendedglob
>
> If you put that before the code chunk it should work.
>
> pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author