Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (13 sloc) 250 Bytes
## Copyright 2017 Clemens Fruhwirth <clemens@endorphin.org>
chpwd() {
[ -z "$PWDJAIL_EXIT_DIR" ] && return
case $PWD/ in
$HOME/*)
;;
*)
if [ -n "$PWDJAIL_EXIT_DIR" ]; then
echo $PWD > $PWDJAIL_EXIT_DIR
exit 0
fi
esac
}