]> Sergey Matveev's repositories - nnn.git/commitdiff
Suppress permission denied messages
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 4 Oct 2019 15:16:57 +0000 (20:46 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 4 Oct 2019 15:16:57 +0000 (20:46 +0530)
plugins/fzy-open

index a2fbb89e122776bdc85b602b9f7643bcaa2f56e8..97da456590288ab1507c168fec72ce6286d5d5b4 100755 (executable)
@@ -7,7 +7,7 @@
 # Shell: POSIX compliant
 # Author: Arun Prakash Jana
 
-entry="$(find -type f | fzy)"
+entry="$(find -type f 2>/dev/null | fzy)"
 
 case "$(file -biL "$entry")" in
     *text*)