fix(shell): expand scope of string replace to include dir

This commit is contained in:
lalvarezt 2025-05-02 13:29:42 +02:00
parent 642880cd98
commit 77e3816a37

View File

@ -108,7 +108,7 @@ function tv_smart_autocomplete
for i in $result
commandline -it -- $dir(string escape -- $i)' '
# optional, if you want to replace '/home/foo/' with '~/', comment out above and uncomment below
# commandline -it -- $dir(string replace --all $HOME '~' (string escape -- $i))' '
# commandline -it -- (string replace --all $HOME '~' $dir(string escape -- $i))' '
end
end