aboutsummaryrefslogtreecommitdiff
path: root/sh/profile.d/oldpwd.sh
blob: 96786338309b092a9640f50abda95489212eadb0 (plain) (blame)
1
2
3
4
5
6
# If we can read ~/.oldpwd, make its contents our OLDPWD
if [ -r "${OLDPWD_FILE:-$HOME/.oldpwd}" ] ; then
    read -r OLDPWD < "${OLDPWD_FILE:-$HOME/.oldpwd}"
    export OLDPWD
fi