Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Permission denied - putting an aliases.zsh file and it being called from .zshrc
- X-seq: zsh-users 22270
- From: shirish शिरीष <shirishag75@xxxxxxxxx>
- To: Martijn Dekker <martijn@xxxxxxxx>
- Subject: Re: Permission denied - putting an aliases.zsh file and it being called from .zshrc
- Date: Sat, 24 Dec 2016 06:54:32 +0530
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ZAZeO3SylFKD6xdpHtRkPhegbCyPpXKE0YS4CqXTjII=; b=PNIJzDwjLZFkmsaVNcNE+wS77Rq2A0GZGSGZo4sIMwcJznx2z1TINr3LoQYZlTCI7o 7SkQR1kTV5uh1moXY7ETp9Sz5S0kywy1xiQCiyQf1C4rZXkvNA4dSP++l7KCr3cE2sGi ql2AHlJuKZ4gxPHki5Okr7/sLXsSpjDbaZV/aPxQJ6Ad0KyzF1DG09BEjVFrU2OEOwfy 8tOCBvAOMIWZe/QFO/+UL4eQ+cHgvlAHDaNLW3EzCaQpV4pmVmQQdLBPWNhJ2Vai3KLQ 9+dPT0qIiKfipdkZRXJT8bIQp9Qa+OffK2tFoFroTwcE72YjvEnz14JlUXBOQSvPMujY Vmrw==
- In-reply-to: <67676a65-f38c-6ba3-5af7-18bde3a2c967@inlv.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CADdDZRnUUd=tAm5RHY3F58cubGZ0R4cXBd9CFD6hKgWt+-x4Tg@mail.gmail.com> <CADdDZR=cENtYZXL7GKkNAmqNzsLbeBHfPGt4JFP0cxYwkgKozw@mail.gmail.com> <67676a65-f38c-6ba3-5af7-18bde3a2c967@inlv.org>
at bottom :-
On 24/12/2016, Martijn Dekker <martijn@xxxxxxxx> wrote:
> Op 23-12-16 om 21:47 schreef shirish शिरीष:
>> at bottom :-
>>
>> On 24/12/2016, shirish शिरीष <shirishag75@xxxxxxxxx> wrote:
> [...]
>>> Trying to source it though get permission denied messages -
>>>
>>> /home/shirish/.zsh $ source .zshrc
>>> .zshrc:1: permission denied: /home/shirish/.zsh/aliases.zsh
>>>
>>> Why am I get permission denied messages ?
>>>
>>
>> had forgotten to add executable right, now it all works, sorry folks...
>> again.
>
> Actually, 'source' and '.' do not require the file to have executable
> permission. The problem is that you were executing the file instead of
> sourcing it (which would have caused the aliases to be promptly
> forgotten after executing). The line you want in ~/.zshrc is:
>
> source ~/.zsh/aliases.zsh
>
> - M.
>
>
That is what I did -
/home/shirish/.zsh $ cat .zshrc | grep source
source ~/.zsh/aliases.zsh
I thought it needed to have executable rights as well, but you are
right, they work well without executable rights.
--
Regards,
Shirish Agarwal शिरीष अग्रवाल
My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
EB80 462B 08E1 A0DE A73A 2C2F 9F3D C7A4 E1C4 D2D8
Messages sorted by:
Reverse Date,
Date,
Thread,
Author