[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Firing a shell function when I change directories
From: |
Maxim Kupfer |
Subject: |
Re: [Help-bash] Firing a shell function when I change directories |
Date: |
Fri, 7 Dec 2018 08:35:13 -0800 |
Works like a charm. Thanks!
On Fri, Dec 7, 2018 at 8:29 AM Greg Wooledge <address@hidden> wrote:
> On Fri, Dec 07, 2018 at 08:23:22AM -0800, Maxim Kupfer wrote:
> > source script 1 || source script 2
> >
> > This is throwing an error though when script 2 should be run, it says: No
> > such file or directory, but the second script runs fine. How do I make
> this
> > silent so that it doesn't give an error?
>
> source script1 2>/dev/null || source script2
>