Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
47d19cc5
Commit
47d19cc5
authored
Aug 18, 2015
by
Andrew Janke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add defensive `emulate -L zsh` to termsupport functions
parent
96c34ceb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
termsupport.zsh
lib/termsupport.zsh
+4
-1
No files found.
lib/termsupport.zsh
View file @
47d19cc5
...
...
@@ -7,6 +7,7 @@
# (In screen, only short_tab_title is used)
# Limited support for Apple Terminal (Terminal can't set window and tab separately)
function
title
{
emulate
-L
zsh
[[
"
$EMACS
"
==
*
term
*
]]
&&
return
# if $2 is unset use $1 as default
...
...
@@ -26,6 +27,7 @@ ZSH_THEME_TERM_TITLE_IDLE="%n@%m: %~"
# Runs before showing the prompt
function
omz_termsupport_precmd
{
emulate
-L
zsh
if
[[
$DISABLE_AUTO_TITLE
==
true
]]
;
then
return
fi
...
...
@@ -35,11 +37,11 @@ function omz_termsupport_precmd {
# Runs before executing the command
function
omz_termsupport_preexec
{
emulate
-L
zsh
if
[[
$DISABLE_AUTO_TITLE
==
true
]]
;
then
return
fi
emulate
-L
zsh
setopt extended_glob
# cmd name only, or if this is sudo or ssh, the next cmd
...
...
@@ -61,6 +63,7 @@ if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then
# Emits the control sequence to notify Terminal.app of the cwd
function
update_terminalapp_cwd
()
{
emulate
-L
zsh
# Identify the directory using a "file:" scheme URL, including
# the host name to disambiguate local vs. remote paths.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment