Removed absolute lf path
This commit is contained in:
parent
24e98fd47e
commit
c66efc268c
2 changed files with 6 additions and 7 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue