From 91b3181eb89e690cbcc4f83d2c59f7e5d7d1690d Mon Sep 17 00:00:00 2001 From: Sebastian Schulze Date: Wed, 9 Jun 2021 09:29:09 +0200 Subject: [PATCH] [ssh] add launcher to xdg --- bin/executable_xdg-open | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/executable_xdg-open b/bin/executable_xdg-open index a31357a..897dcbb 100644 --- a/bin/executable_xdg-open +++ b/bin/executable_xdg-open @@ -3,6 +3,7 @@ lower=${1,,} echo $lower +echo "${lower%%:*}" case "${lower%%:*}" in *.slack.*) @@ -11,6 +12,10 @@ case "${lower%%:*}" in file) exec nautilus "$1" ;; + ssh) + host=$(echo $1 | cut -d "/" -f 3) + exec alacritty -e ssh "$host" + ;; *.html|http|https) exec firefox "$1" ;;