mirror of
https://github.com/kristoferssolo/solorice.git
synced 2026-03-18 08:09:40 +00:00
Update 2026-02-09
This commit is contained in:
9
config/fish/functions/lfcd.fish
Normal file
9
config/fish/functions/lfcd.fish
Normal file
@@ -0,0 +1,9 @@
|
||||
function lfcd
|
||||
set tmp (mktemp -uq)
|
||||
lf -last-dir-path="$tmp" $argv
|
||||
if test -f "$tmp"
|
||||
set dir (cat "$tmp")
|
||||
test -d "$dir" && test "$dir" != (pwd) && z "$dir"
|
||||
end
|
||||
rm -f $tmp 2>/dev/null
|
||||
end
|
||||
Reference in New Issue
Block a user