diff options
Diffstat (limited to 'home-manager/packages/scripts/wrappers/ll')
-rwxr-xr-x | home-manager/packages/scripts/wrappers/ll | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/home-manager/packages/scripts/wrappers/ll b/home-manager/packages/scripts/wrappers/ll index 48bd0ad3..f1d96f15 100755 --- a/home-manager/packages/scripts/wrappers/ll +++ b/home-manager/packages/scripts/wrappers/ll @@ -3,16 +3,11 @@ # shellcheck source=/dev/null SHELL_LIBRARY_VERSION="1.1.3" . %SHELL_LIBRARY_PATH -export LLP=0 -tmp="$(mktmp)" +last_directory="$(mktmp)" -lf -last-dir-path="$tmp" "$@" +command lf -last-dir-path="$last_directory" "$@" -if [ -f "$tmp" ]; then - dir="$(cat "$tmp")" - if [ -d "$dir" ] && [ "$dir" != "$(pwd)" ];then - cd "$dir" || die "$dir doesn't exits!" - fi -fi +dir="$(cat "$last_directory")" +cd "$dir" || die "$dir does not exist!" # vim: ft=sh |