ft: home-manager terminal
This commit is contained in:
10
modules/terminal/fish-config/yazi.fish
Normal file
10
modules/terminal/fish-config/yazi.fish
Normal file
@@ -0,0 +1,10 @@
|
||||
set tempfile /tmp/chosendir
|
||||
command yazi cwd-file=$tempfile (pwd) $argv
|
||||
|
||||
if test -f $tempfile
|
||||
if [ (cat $tempfile) != (pwd) ]
|
||||
cd (cat $tempfile)
|
||||
end
|
||||
end
|
||||
|
||||
rm -f $tempfile
|
||||
Reference in New Issue
Block a user