diff options
author | sinanmohd <sinan@firemail.cc> | 2023-07-03 17:02:09 +0530 |
---|---|---|
committer | sinanmohd <sinan@firemail.cc> | 2023-07-03 17:02:09 +0530 |
commit | 9991723d469eefc139d90b8ddf9f9c5e4eba3a79 (patch) | |
tree | fb45a3144892165d79854c8383e88bb2b5b2f0c0 /.local/bin/linkhandler | |
parent | b5b0ae6ed79ec839a77d619749c55858ad382720 (diff) |
linkhandler: detect .lua, .java, and .nix as text files
Diffstat (limited to '.local/bin/linkhandler')
-rwxr-xr-x | .local/bin/linkhandler | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/linkhandler b/.local/bin/linkhandler index 392f137..cae7192 100755 --- a/.local/bin/linkhandler +++ b/.local/bin/linkhandler @@ -23,7 +23,7 @@ main() curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///;s/%20/ /g")" && exec xdg-open "/tmp/$(echo "$1" | sed "s/.*\///;s/%20/ /g")" > /dev/null 2>&1 & ;; - *.cpp|*.c|*.sh|*.txt) + *.c|*.cpp|*.sh|*.txt|*.java|*.nix|*.lua) note "processing text" curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///;s/%20/ /g")" && exec "$TERMINAL" -e xdg-open "/tmp/$(echo "$1" | sed "s/.*\///;s/%20/ /g")" > /dev/null 2>&1 & |