From 77e3816a37928823306c931fb6e7294971fcbece Mon Sep 17 00:00:00 2001 From: lalvarezt Date: Fri, 2 May 2025 13:29:42 +0200 Subject: [PATCH] fix(shell): expand scope of string replace to include dir --- television/utils/shell/completion.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/television/utils/shell/completion.fish b/television/utils/shell/completion.fish index 7a85350..c2596f4 100644 --- a/television/utils/shell/completion.fish +++ b/television/utils/shell/completion.fish @@ -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