suppress lfcd tmp mesg

This commit is contained in:
Luke Smith 2020-04-08 21:36:01 -04:00
parent a08904d88a
commit 3e8f5c1647
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252

View file

@ -61,7 +61,7 @@ lfcd () {
lf -last-dir-path="$tmp" "$@" lf -last-dir-path="$tmp" "$@"
if [ -f "$tmp" ]; then if [ -f "$tmp" ]; then
dir="$(cat "$tmp")" dir="$(cat "$tmp")"
rm -f "$tmp" rm -f "$tmp" >/dev/null
[ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir" [ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
fi fi
} }