aboutsummaryrefslogtreecommitdiff
path: root/sh/logout
diff options
context:
space:
mode:
Diffstat (limited to 'sh/logout')
-rw-r--r--sh/logout2
1 files changed, 2 insertions, 0 deletions
diff --git a/sh/logout b/sh/logout
new file mode 100644
index 00000000..4da61192
--- /dev/null
+++ b/sh/logout
@@ -0,0 +1,2 @@
+# Write PWD to a file if set
+printf '%s\n' "$PWD" >"${OLDPWD_FILE:-"$HOME"/.oldpwd}"