Don't display pushd/popd stack across several bash scripts (quiet pushd/popd)
Solution 1:
You could add
pushd () {
command pushd "$@" > /dev/null
}
popd () {
command popd "$@" > /dev/null
}
to the top of each script. This is probably the minimum amount of work it will take to solve your problem.
Solution 2:
In your .profile file (what ever it is called in your system) add:
pushd () {
command pushd "$@" > /dev/null
}
popd () {
command popd "$@" > /dev/null
}
export pushd popd
Solution 3:
In zsh you can setopt PUSHDSILENT
. Put this in your ~/.zshrc
.