From 9f57a9663a4c0543a994a951b2076de3655ec677 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 25 Apr 2012 22:56:58 +0100 Subject: [PATCH] cd to $session_root as well as setting Tmux's default-path --- layout-helpers.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/layout-helpers.sh b/layout-helpers.sh index 0cbc3b8..7628ee5 100644 --- a/layout-helpers.sh +++ b/layout-helpers.sh @@ -85,6 +85,7 @@ initialize_session() { # Set default-path for session if [ ! -z "$session_root" ] && [ -d "$session_root" ]; then + cd "$session_root" tmux set-option -t "$session" default-path "$session_root" 1>/dev/null fi