bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add the --nice argument to make


From: Philip Guenther
Subject: Re: [PATCH] Add the --nice argument to make
Date: Mon, 16 Sep 2019 18:23:10 -0900

On Mon, Sep 16, 2019 at 4:17 PM Palmer Dabbelt <address@hidden> wrote:
I call make quite regularly, and I almost always want to invoke it with
at least a bit of nice to avoid it eating my whole machine.  Since I can
stick "-j$(nproc)" in my shell's default MAKEFLAGS I frequently end up
being lazy and just typing "make", which I then have to kill in order to
re-run as "nice -n10 make".

This sounds like a perfect case to use a shell alias or function in your shell's rcfile, or a shell script in your person bin directory.  i.e., something like
    alias make='nice -n10 make'
or maybe
    make() { nice -n10 /usr/bin/make "$@"; }


Philip Guenther


reply via email to

[Prev in Thread] Current Thread [Next in Thread]