Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terminal: Use the correct function names for setting titles #3

Merged
merged 1 commit into from Jun 21, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions terminal/functions/terminal:title-with-command
Expand Up @@ -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
Expand All @@ -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

Expand Down
6 changes: 3 additions & 3 deletions terminal/functions/terminal:title-with-path
Expand Up @@ -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

Expand Down