From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16204 invoked by alias); 23 Dec 2016 22:56:51 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22269 Received: (qmail 18033 invoked from network); 23 Dec 2016 22:56:51 -0000 X-Qmail-Scanner-Diagnostics: from kahlil.inlv.org by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(37.59.109.123):SA:0(-3.1/5.0):. Processed in 0.792329 secs); 23 Dec 2016 22:56:51 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=RP_MATCHES_RCVD autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: martijn@inlv.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at inlv.org does not designate permitted sender hosts) Subject: Re: Permission denied - putting an aliases.zsh file and it being called from .zshrc To: zsh-users@zsh.org References: Cc: =?UTF-8?B?c2hpcmlzaCDgpLbgpL/gpLDgpYDgpLc=?= From: Martijn Dekker Message-ID: <67676a65-f38c-6ba3-5af7-18bde3a2c967@inlv.org> Date: Fri, 23 Dec 2016 22:56:45 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Op 23-12-16 om 21:47 schreef shirish शिरीष: > at bottom :- > > On 24/12/2016, shirish शिरीष 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.