From f810897426c8bc73135ab9c61a5a2ab6d59c3902 Mon Sep 17 00:00:00 2001 From: James Blair Date: Sun, 6 Mar 2022 17:50:23 +1300 Subject: [PATCH] Add bashrc helper for renaming tmate panes. --- .bashrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.bashrc b/.bashrc index 55eb2ed..7788542 100644 --- a/.bashrc +++ b/.bashrc @@ -100,6 +100,11 @@ elif [ -f ~/.bw_session ]; then export BW_SESSION=$(cat ~/.bw_session); # Otherwise unlock to start new session else bwu; fi +# Helper function for tmate pane renaming +function renamepane { + printf '\033]2;%s\033\\' "${1}" +} + # Try connect to my default tmate socket if ! tmate -S /tmp/default.tmate attach; then tmate -S /tmp/default.tmate.tmate new-session -s default -n default -d