lfcd has to be in bashrc

This commit is contained in:
2023-08-14 05:18:55 -06:00
parent 4049eaec3e
commit d9fe07f71a
2 changed files with 15 additions and 14 deletions

View File

@@ -1,14 +0,0 @@
#!/bin/bash
tmp="$(mktemp)"
lfrun -last-dir-path="$tmp" "$@"
if [ -f "$tmp" ]; then
dir="$(cat "$tmp")"
rm -f "$tmp"
if [ -d "$dir" ]; then
if [ "$dir" != "$(pwd)" ]; then
cd "$dir"
fi
fi
fi