From bc816596398928645f45af2df20c0c79c97e64f6 Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Fri, 3 Mar 2023 05:48:55 +0100 Subject: [PATCH] docs(script): Reformatted (#1) --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 81da2b8..bbd765f 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,12 @@ It peeks into that file and offers auto-completion based on saved sessions. It c sudo ln -s /hs.sh /usr/local/bin/hs chmod +x /hs.sh ``` +1. Run: + ``` + hs + ``` + +This will list all HeidiSQL sessions that have `NetType` set to `2` aka `MariaDB or MySQL (SSH tunnel)`. Select one and `hs` creates the necessary tunnel. # What it looks like @@ -27,8 +33,6 @@ Here with `fzf` as auto-completion helper (optional, is a personal preference): ![Screencast showing hs in action](https://i.imgur.com/FhVFtaR.gif) -> Here `hs` first attempts to set up an SSH tunnel for a HeidiSQL saved session and fails because something's already listening on the local port. -> -> We `kill` the connection in question - an SSH tunnel from a prior test - and try again. This time `hs` correctly creates our tunnel. With `set -xv` we see the actual command that gets executed. +> Here `hs` first attempts to set up an SSH tunnel for a HeidiSQL saved session and fails because something's already listening on the local port. We `kill` the connection in question - an SSH tunnel from a prior test - and try again. This time `hs` correctly creates our tunnel. With `set -xv` we see the actual command that gets executed. > > Once done we clean up after ourselves and kill SSH tunnels we no longer need.