hm: hypr, vesktop, dunst
This commit is contained in:
1 parent
c3234faf17
commit
597c0582a8
12 files changed
+267
-103
No files matched your search
@@ -1,10 +1,7 @@
|
||||
set tempfile /tmp/chosendir
|
||||
command yazi cwd-file=$tempfile (pwd) $argv
|
||||
set tempfile (mktemp -t "yazi-cwd.XXX")
|
||||
command yazi $argv --cwd-file=$tempfile
|
||||
|
||||
if test -f $tempfile
|
||||
if [ (cat $tempfile) != (pwd) ]
|
||||
cd (cat $tempfile)
|
||||
end
|
||||
if read -z cwd < "$tempfile"; and [ "$cwd" != "$PWD" ]; and test -d "$cwd"
|
||||
builtin cd -- "$cwd"
|
||||
end
|
||||
|
||||
rm -f $tempfile
|
||||
command rm -f -- "$tempfile"
|
||||