From 1267aee97e8975f2922e800d5918848ff66f63ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Wed, 1 May 2024 13:44:27 +0200 Subject: [PATCH] Try more escaping of paths --- .config/zsh/.zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index d6294af..0525ec2 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -87,7 +87,7 @@ function find_global() { echo -e "$PATHS" > $FZY_CACHE fi file="$(cat $FZY_CACHE | fzy -l 20)" - echo $file | cat - $FZY_CACHE | awk '!x[$0]++' > /tmp/fzy_paths_$file_type && mv /tmp/fzy_paths_$file_type $FZY_CACHE + echo "$file" | cat - $FZY_CACHE | awk '!x[$0]++' > /tmp/fzy_paths_$file_type && mv /tmp/fzy_paths_$file_type $FZY_CACHE echo "$file" } @@ -104,7 +104,7 @@ function open_path() { cd_to "$selection" else selection=$(realpath "$selection") - cd_to "$(dirname $selection)" + cd_to "$(dirname \"$selection\")" nvim "$selection" fi else