aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/pushd.bash
blob: e708d3e8004168104d69f02a03e93ca6e5941db5 (plain)
1
2
3
4
5
# Make pushd default to $HOME if no arguments given, much like cd
pushd() {
    # shellcheck disable=SC2164
    builtin pushd "${@:-"$HOME"}"
}