Commit f83947ff authored by Frank Terbeck's avatar Frank Terbeck

ta: Pass working directory to post-session-creation-hook

This way you can savely create new windows in new sessions that adhere
to the configured working directories.
parent 99950f5c
......@@ -726,7 +726,7 @@ function ta () {
zstyle -s $context working-directory tmp || tmp=$HOME
(( ${+opt[-w]} )) && tmp=${${opt[-w]}:A}
+ta+new-session $tmp $session
+ta+run-hook post-session-creation-hook || return $REPLY
+ta+run-hook post-session-creation-hook $tmp || return $REPLY
if ! zstyle -a $context dispatcher dispatcher_style; then
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment