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