From 4b0f4b5efbb48cc8d41c60089e059660831045c2 Mon Sep 17 00:00:00 2001 From: Andreas Fuchs Date: Fri, 21 Jun 2013 17:17:23 +0200 Subject: [PATCH] terminal: Use the correct function names for setting titles This fixes #2. --- terminal/functions/terminal:title-with-command | 8 ++++---- terminal/functions/terminal:title-with-path | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/terminal/functions/terminal:title-with-command b/terminal/functions/terminal:title-with-command index 69abc85..1b0d018 100644 --- a/terminal/functions/terminal:title-with-command +++ b/terminal/functions/terminal:title-with-command @@ -18,7 +18,7 @@ if [[ "${1[(w)1]}" == (fg|%*)(\;|) ]]; then jobs $job_name 2>/dev/null > >( read index discarded # the index is already surrounded by brackets: [1] - set-titles-with-command "${(e):-\$jobtexts_from_parent_shell$index}" + terminal:title-with-command "${(e):-\$jobtexts_from_parent_shell$index}" ) else # set the command name, or in the case of sudo or ssh, the next command @@ -27,10 +27,10 @@ else unset MATCH if [[ "$TERM" == screen* ]]; then - set-screen-window-title "$truncated_cmd" + terminal:screen:window-title "$truncated_cmd" else - set-terminal-window-title "$cmd" - set-terminal-tab-title "$truncated_cmd" + terminal:window-title "$cmd" + terminal:tab-title "$truncated_cmd" fi fi diff --git a/terminal/functions/terminal:title-with-path b/terminal/functions/terminal:title-with-path index 242a073..d745ef2 100644 --- a/terminal/functions/terminal:title-with-path +++ b/terminal/functions/terminal:title-with-path @@ -10,10 +10,10 @@ else unset MATCH if [[ "$TERM" == screen* ]]; then - set-screen-window-title "$truncated_path" + terminal:screen:window-title "$truncated_path" else - set-terminal-window-title "$abbreviated_path" - set-terminal-tab-title "$truncated_path" + terminal:window-title "$abbreviated_path" + terminal:tab-title "$truncated_path" fi fi