From 4d89d45b14a27451ea2bdae8f8c1b0d7320ec4ad Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Wed, 27 Dec 2023 23:49:39 +0100 Subject: [PATCH] wezterm: ssh improvements --- home/config/wezterm/config.fnl | 1 + home/programs/fish.nix | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/home/config/wezterm/config.fnl b/home/config/wezterm/config.fnl index 60c91b4..c915484 100644 --- a/home/config/wezterm/config.fnl +++ b/home/config/wezterm/config.fnl @@ -53,6 +53,7 @@ (where t (t:find "^rexit%s")) {: title :icon " " :color colors.reddit} (where t (t:find :^redis-)) {: title :icon " " :color "#DC372C"} (where t (t:find "^%[%w+%]%s")) {: title :icon " " :color colors.ssh} + (where t (t:find "^%w+@%w+:%s")) {: title :icon " " :color colors.ssh} (where t (t:find "^%w+-dev")) {: title :icon " " :color "#0099CC"} (where t (t:find "^%w+-dl%s")) {: title :icon " " :color "#22BC00"} _ {: title :icon " " :color "#F8F8F2"})) diff --git a/home/programs/fish.nix b/home/programs/fish.nix index a181b0e..51d3d26 100644 --- a/home/programs/fish.nix +++ b/home/programs/fish.nix @@ -98,6 +98,10 @@ in end ''; + wezssh = /* fish */ '' + wezterm cli spawn --domain-name "SSH:$argv" + ''; + wget-browser = /* fish */ '' set user_agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" ${lib.getExe pkgs.wget} -U "$user_agent" $argv