mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
Added lfrun to lfcd
This commit is contained in:
parent
300dc7e6c5
commit
d8db3697a1
@ -93,7 +93,7 @@ function cd() {
|
|||||||
# Use lf to switch directories and bind it to ctrl-o
|
# Use lf to switch directories and bind it to ctrl-o
|
||||||
lfcd () {
|
lfcd () {
|
||||||
tmp="$(mktemp)"
|
tmp="$(mktemp)"
|
||||||
lf -last-dir-path="$tmp" "$@"
|
lfrun -last-dir-path="$tmp" "$@"
|
||||||
if [ -f "$tmp" ]; then
|
if [ -f "$tmp" ]; then
|
||||||
dir="$(cat "$tmp")"
|
dir="$(cat "$tmp")"
|
||||||
rm -f "$tmp" >/dev/null
|
rm -f "$tmp" >/dev/null
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user