From 2b5c6fc718b52a5f3e69ac79c9d74ac457cdd416 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 20 Nov 2024 03:23:39 +0100 Subject: [PATCH] add tmssh & ubuntu shortcut function --- dot_config/fish/private_functions/tmssh.fish | 3 +++ dot_config/fish/private_functions/ubuntu.fish | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 dot_config/fish/private_functions/tmssh.fish create mode 100644 dot_config/fish/private_functions/ubuntu.fish diff --git a/dot_config/fish/private_functions/tmssh.fish b/dot_config/fish/private_functions/tmssh.fish new file mode 100644 index 0000000..e40f720 --- /dev/null +++ b/dot_config/fish/private_functions/tmssh.fish @@ -0,0 +1,3 @@ +function tmssh --wraps=ssh --description 'start ssh with tmux' +ssh -t $argv 'tmux -CC new -A -s tmssh' +end diff --git a/dot_config/fish/private_functions/ubuntu.fish b/dot_config/fish/private_functions/ubuntu.fish new file mode 100644 index 0000000..8b04149 --- /dev/null +++ b/dot_config/fish/private_functions/ubuntu.fish @@ -0,0 +1,4 @@ +function ubuntu --description 'alias ubuntu tmssh ubuntu' + tmssh ubuntu $argv + +end