From 3a0713ce08f14525e1cb5e645cf411a07d6ccb19 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 21 Aug 2024 17:29:54 +0200 Subject: fix(pkgs/ll): Ensure that the last_directory save dir exists --- pkgs/by-name/ll/lm/lm.sh | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100755 pkgs/by-name/ll/lm/lm.sh (limited to 'pkgs/by-name/ll/lm/lm.sh') diff --git a/pkgs/by-name/ll/lm/lm.sh b/pkgs/by-name/ll/lm/lm.sh deleted file mode 100755 index 55be0798..00000000 --- a/pkgs/by-name/ll/lm/lm.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/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 -- cgit 1.4.1