help-bash
[Top][All Lists]
Advanced

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

Re: Quiet version of pushd/popd


From: Chet Ramey
Subject: Re: Quiet version of pushd/popd
Date: Wed, 21 Apr 2021 18:31:15 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.9.1

On 4/21/21 5:55 PM, Jesse Hathaway wrote:
I often use pushd & popd in this manner, I would love a silent option as well!
It appears csh has an environment variable you can set, pushdsilent, but I
would prefer a flag as well.

pushd()
{
        builtin pushd "$@" >/dev/null 2>&1
}

popd()
{
        builtin popd "$@" >/dev/null 2>&1
}




--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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