Added lfrun to lfcd

This commit is contained in:
Kristofers Solo 2022-04-28 13:24:13 +03:00
parent 300dc7e6c5
commit d8db3697a1

View File

@ -93,7 +93,7 @@ function cd() {
# Use lf to switch directories and bind it to ctrl-o
lfcd () {
tmp="$(mktemp)"
lf -last-dir-path="$tmp" "$@"
lfrun -last-dir-path="$tmp" "$@"
if [ -f "$tmp" ]; then
dir="$(cat "$tmp")"
rm -f "$tmp" >/dev/null