您可以添加
pushd () { command pushd "$@" > /dev/null } popd () { command popd "$@" > /dev/null }
setopt PUSHDSILENT
在您的.profile文件中(系统中所谓的内容)添加: