follow links in 'open' examples

cc #634
This commit is contained in:
Gokcehan committed 2021-05-22 01:46:13 +03:00
1 parent 7acb69c40a
commit 5d02b557d3
4 files changed
+5

No files matched your search

+1
View File
@@ -36,6 +36,7 @@ map O $mimeopen --ask $f
# use either file extensions and/or mime types here. Below uses an editor for
# text files and a file opener for the rest.
cmd open ${{
test -L $f && f=$(readlink -f $f)
case $(file --mime-type $f -b) in
text/*) $EDITOR $fx;;
*) for f in $fx; do setsid $OPENER $f > /dev/null 2> /dev/null & done;;