From 104e9b7eb22dc3f237dbb38e55549513705afe6b Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Thu, 26 Jan 2023 09:46:54 -0800 Subject: [PATCH] Updated version of fish ssh shortcut --- TODO.org | 1 - nix/modules/fish/default.nix | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/TODO.org b/TODO.org index 34d0c27..33c77ae 100644 --- a/TODO.org +++ b/TODO.org @@ -39,7 +39,6 @@ https://github.com/microsoft/pyright/issues/626 ** Cheatsheet popup shortcuts *** fzf -> tldr *** kitty shortcuts -** ssh wrapper ** shell integration * Shell ** my own version of "hey" diff --git a/nix/modules/fish/default.nix b/nix/modules/fish/default.nix index 803afbb..27f0c16 100644 --- a/nix/modules/fish/default.nix +++ b/nix/modules/fish/default.nix @@ -61,12 +61,10 @@ let tide_conf = builtins.readFile ./tide_config.fish; in # function ssh --wraps ssh - set _SSH_CMD (which ssh) if test $TERM = xterm-kitty - TERM=xterm-256color $_SSH_CMD $argv - else - $_SSH_CMD $argv + set --function --export TERM xterm-256color end + command ssh $argv end ${builtins.readFile ./tide_config.fish}