From df3b600c056d2b1da6666fa108ae670aeb4588a0 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Fri, 3 Jan 2025 00:41:17 +0100 Subject: [PATCH] zsh: add wssh function --- home/config/wezterm/config.fnl | 4 ---- home/programs/wezterm.nix | 7 +------ home/programs/zsh/functions/wezssh | 1 - home/programs/zsh/functions/wssh | 1 + 4 files changed, 2 insertions(+), 11 deletions(-) delete mode 100755 home/programs/zsh/functions/wezssh create mode 100644 home/programs/zsh/functions/wssh diff --git a/home/config/wezterm/config.fnl b/home/config/wezterm/config.fnl index c7f08f3..c272372 100644 --- a/home/config/wezterm/config.fnl +++ b/home/config/wezterm/config.fnl @@ -255,10 +255,6 @@ :action :OpenLinkAtMouseCursor}] ;; Scrollback :scrollback_lines 5000 - ;; Launch Menu - :launch_menu [{:label :Btop++ :args [_G.programs.btop]} - {:label :bash :args [_G.shells.bash]} - {:label :zsh :args [_G.shells.zsh]}] ;; Other :front_end :WebGpu :max_fps 120 diff --git a/home/programs/wezterm.nix b/home/programs/wezterm.nix index 5d040f5..336de3c 100644 --- a/home/programs/wezterm.nix +++ b/home/programs/wezterm.nix @@ -10,12 +10,7 @@ in extraConfig = /* lua */ '' _G.shells = { - bash = '${pkgs.bash.outPath}/bin/bash', - zsh = '${pkgs.zsh.outPath}/bin/zsh', - }; - - _G.programs = { - btop = '${pkgs.btop.outPath}/bin/btop', + zsh = '${pkgs.zsh.outPath}/bin/zsh' }; local cfg = require('config'); diff --git a/home/programs/zsh/functions/wezssh b/home/programs/zsh/functions/wezssh deleted file mode 100755 index c216b76..0000000 --- a/home/programs/zsh/functions/wezssh +++ /dev/null @@ -1 +0,0 @@ -wezterm cli spawn --domain-name "SSH:$1" diff --git a/home/programs/zsh/functions/wssh b/home/programs/zsh/functions/wssh new file mode 100644 index 0000000..d5bd672 --- /dev/null +++ b/home/programs/zsh/functions/wssh @@ -0,0 +1 @@ +wezterm cli spawn --domain-name "SSHMUX:$1"