diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-05-08 22:38:56 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-05-08 22:38:56 +0530 |
commit | 8d4c41d685fa56c06145a70abadf571e002b8a23 (patch) | |
tree | 4899bad396e77badf2bd8b1293205fc7ba6cf355 /.local/bin | |
parent | cc3beb07235974bdc706b0c156ffe7f544a30c81 (diff) |
linkhandler: handle .py and .toml
Diffstat (limited to '.local/bin')
-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 a4904e1..c703eba 100755 --- a/.local/bin/linkhandler +++ b/.local/bin/linkhandler @@ -25,7 +25,7 @@ case "${1%/}" in 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 & ;; -*.c|*.cpp|*.sh|*.txt|*.java|*.nix|*.lua) +*.c|*.cpp|*.sh|*.txt|*.java|*.nix|*.lua|*.py|*.toml) note "processing text" 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 & |