Skip to content

Instantly share code, notes, and snippets.

@TomCan
Created November 22, 2019 08:10
Show Gist options
  • Save TomCan/02a333e5459f13c802e8c925ee1413fa to your computer and use it in GitHub Desktop.
Save TomCan/02a333e5459f13c802e8c925ee1413fa to your computer and use it in GitHub Desktop.
xdg-open ssh://
xdg-mime default ssh.desktop x-scheme-handler/ssh
cat << EOF > ~/.local/share/applications/ssh.desktop
[Desktop Entry]
Version=1.0
Name=SSH Launcher
Exec=bash -c '(URL="%U" HOST="\${URL:6}"; ssh \$HOST); bash'
Terminal=true
Type=Application
Icon=utilities-terminal
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment