Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 15 lines (11 sloc) 0.374 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
[ "$TERM_PROGRAM" = "Apple_Terminal" ] && export TERMINALAPP=1

if [ $TERMINALAPP ]
then
set_terminal_app_pwd() {
# Tell Terminal.app about each directory change.
printf '\e]7;%s\a' "$(echo "file://$HOST$PWD" | sed -e 's/ /%20/g')"
}
fi

[ -s ~/.lastpwd ] && [ "$PWD" = "$HOME" ] && \
builtin cd `cat ~/.lastpwd` 2>/dev/null

[ $TERMINALAPP ] && set_terminal_app_pwd
Something went wrong with that request. Please try again.