function lwd cd $LAST_WORKING_DIR end function __onpwd --on-variable PWD set --universal LAST_WORKING_DIR $PWD end