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

+2
View File
@@ -13,6 +13,7 @@ lf \- terminal file manager
.OP \-remote command
.OP \-selection-path path
.OP \-server
.OP \-single
.OP \-version
.OP \-help
.RI [ directory ]
@@ -1273,6 +1274,7 @@ You may want to use either file extensions or mime types from 'file' command:
.PP
.EX
cmd open ${{
test -L $f && f=$(readlink -f $f)
case $(file --mime-type $f -b) in
text/*) vi $fx;;
*) for f in $fx; do xdg-open $f > /dev/null 2> /dev/null & done;;