From 00a2346b26fe202b2aad760fb0e6993be9118031 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Tue, 12 Jan 2021 15:55:13 +0800 Subject: [PATCH] [feature] rename tab on ssh --- cli/fish/config.fish | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cli/fish/config.fish b/cli/fish/config.fish index fa82fc0..8edf169 100644 --- a/cli/fish/config.fish +++ b/cli/fish/config.fish @@ -59,5 +59,13 @@ if status is-interactive # === auto cd into last activated directory cd $last_pwd + + if test -n "$TMUX" + function ssh + tmux rename-window $argv[1] + command ssh $argv + tmux setw automatic-rename + end + end end