Removed absolute lf path

This commit is contained in:
agryphus 2023-10-13 03:42:48 -04:00
parent 24e98fd47e
commit c66efc268c
2 changed files with 6 additions and 7 deletions

View file

@ -43,8 +43,7 @@ alias ip='ip --color=auto'
# Use lf to switch directories and bind it to ctrl-o
lfcd () {
tmp="$(mktemp)"
# `command` is needed in case `lfcd` is aliased to `lf`
command lf -last-dir-path="$tmp" "$@"
command lfub -last-dir-path="$tmp" "$@"
if [ -f "$tmp" ]; then
dir="$(cat "$tmp")"
rm -f "$tmp"