diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-21 17:29:54 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-21 17:29:54 +0200 |
commit | 3a0713ce08f14525e1cb5e645cf411a07d6ccb19 (patch) | |
tree | b953aae4c21faeefe6399ec6e9b65b7554f9dac1 /pkgs | |
parent | fix(pkgs/iamb): Temporarily include as pkg (diff) | |
download | nixos-config-3a0713ce08f14525e1cb5e645cf411a07d6ccb19.tar.gz nixos-config-3a0713ce08f14525e1cb5e645cf411a07d6ccb19.zip |
fix(pkgs/ll): Ensure that the last_directory save dir exists
Diffstat (limited to 'pkgs')
-rwxr-xr-x | pkgs/by-name/ll/ll/ll.sh | 1 | ||||
-rwxr-xr-x | pkgs/by-name/lm/lm/lm.sh (renamed from pkgs/by-name/ll/lm/lm.sh) | 2 | ||||
-rw-r--r-- | pkgs/by-name/lm/lm/package.nix (renamed from pkgs/by-name/ll/lm/package.nix) | 0 |
3 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/by-name/ll/ll/ll.sh b/pkgs/by-name/ll/ll/ll.sh index 9bec7eaf..73328e3e 100755 --- a/pkgs/by-name/ll/ll/ll.sh +++ b/pkgs/by-name/ll/ll/ll.sh @@ -9,6 +9,7 @@ command lf -last-dir-path="$last_directory" "$@" dir="$(cat "$last_directory")" if cd "$dir"; then + [ -d "$XDG_RUNTIME_DIR/ll" ] || mkdir "$XDG_RUNTIME_DIR/ll" echo "$dir" >"$XDG_RUNTIME_DIR/ll/last_directory" else die "$dir does not exist!" diff --git a/pkgs/by-name/ll/lm/lm.sh b/pkgs/by-name/lm/lm/lm.sh index 55be0798..d5fdca10 100755 --- a/pkgs/by-name/ll/lm/lm.sh +++ b/pkgs/by-name/lm/lm/lm.sh @@ -7,6 +7,6 @@ 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)." + msg "No last directory saved (try using ll instead)." fi # vim: ft=sh diff --git a/pkgs/by-name/ll/lm/package.nix b/pkgs/by-name/lm/lm/package.nix index ef417cd2..ef417cd2 100644 --- a/pkgs/by-name/ll/lm/package.nix +++ b/pkgs/by-name/lm/lm/package.nix |