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 22269
- From: Martijn Dekker <martijn@xxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Permission denied - putting an aliases.zsh file and it being called from .zshrc
- Date: Fri, 23 Dec 2016 22:56:45 +0000
- Cc: shirish शिरीष <shirishag75@xxxxxxxxx>
- In-reply-to: <CADdDZR=cENtYZXL7GKkNAmqNzsLbeBHfPGt4JFP0cxYwkgKozw@mail.gmail.com>
- 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>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author