diff --git a/zshrc b/zshrc index 98ba060..71b0b8f 100644 --- a/zshrc +++ b/zshrc @@ -186,7 +186,10 @@ fdr() { # Find in files with ripgrep and fzf frg() { file=$(rg . --line-number | fzf | cut -d: -f1 -f2) - nvim $file + if [ "$file" != "" ] + then + nvim $file + fi } # fkill - kill process