From 3f6efa362fa366b1be1c801f2e14da74d97af6f0 Mon Sep 17 00:00:00 2001 From: Dennis Date: Wed, 27 Aug 2025 13:48:06 +0200 Subject: [PATCH] adds dbui functions and kill_tunnels helper --- modules/fish/work.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/fish/work.nix b/modules/fish/work.nix index b5cdcac..582192c 100644 --- a/modules/fish/work.nix +++ b/modules/fish/work.nix @@ -129,6 +129,15 @@ command fzf ''; + dbui_stg = '' + ssh -NL 4321:192.168.0.168:3306 otc & nvim +DBUI + ''; + dbui_prod = '' + ssh -NL 4322:192.168.0.38:3306 otc-prod & nvim +DBUI + ''; + kill_tunnels = '' + ps -o pid,command | grep "^[0-9]\{4,5\} ssh -N?L" | awk '{print $1}' | xargs kill -9 + ''; }; interactiveShellInit = ''