cleaned bashrc and added scripts

This commit is contained in:
2023-08-14 02:09:11 -06:00
parent 6b5da888da
commit 4824e32fa4
6 changed files with 32 additions and 19 deletions

14
.local/bin/lfcd Executable file
View File

@@ -0,0 +1,14 @@
#!/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