blob: 55be0798507d814280c58e4867e5bd93ca38f367 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env dash
# shellcheck source=/dev/null
SHELL_LIBRARY_VERSION="2.1.2" . %SHELL_LIBRARY_PATH
if [ -f "$XDG_RUNTIME_DIR/ll/last_directory" ]; then
last_dir="$(cat "$XDG_RUNTIME_DIR/ll/last_directory")"
cd "$last_dir" || die "$last_dir does not exist!"
else
msg "No last directory safed (try using ll instead)."
fi
# vim: ft=sh
|