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
06063ab6
Commit
06063ab6
authored
Mar 24, 2011
by
Lorrin Nelson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce DISABLE_AUTO_TITLE option
parent
52df8544
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
termsupport.zsh
lib/termsupport.zsh
+7
-3
zshrc.zsh-template
templates/zshrc.zsh-template
+3
-0
No files found.
lib/termsupport.zsh
View file @
06063ab6
...
@@ -16,11 +16,15 @@ ZSH_THEME_TERM_TITLE_IDLE="%n@%m: %~"
...
@@ -16,11 +16,15 @@ ZSH_THEME_TERM_TITLE_IDLE="%n@%m: %~"
#Appears when you have the prompt
#Appears when you have the prompt
function
precmd
{
function
precmd
{
title
$ZSH_THEME_TERM_TAB_TITLE_IDLE
$ZSH_THEME_TERM_TITLE_IDLE
if
[
"
$DISABLE_AUTO_TITLE
"
!=
"true"
]
;
then
title
$ZSH_THEME_TERM_TAB_TITLE_IDLE
$ZSH_THEME_TERM_TITLE_IDLE
fi
}
}
#Appears at the beginning of (and during) of command execution
#Appears at the beginning of (and during) of command execution
function
preexec
{
function
preexec
{
local
CMD
=
${
1
[(wr)^(*=*|sudo|ssh|-*)]
}
#cmd name only, or if this is sudo or ssh, the next cmd
if
[
"
$DISABLE_AUTO_TITLE
"
!=
"true"
]
;
then
title
"
$CMD
"
"%100>...>
$2
%<<"
local
CMD
=
${
1
[(wr)^(*=*|sudo|ssh|-*)]
}
#cmd name only, or if this is sudo or ssh, the next cmd
title
"
$CMD
"
"%100>...>
$2
%<<"
fi
}
}
templates/zshrc.zsh-template
View file @
06063ab6
...
@@ -14,6 +14,9 @@ export ZSH_THEME="robbyrussell"
...
@@ -14,6 +14,9 @@ export ZSH_THEME="robbyrussell"
# Uncomment following line if you want to disable colors in ls
# Uncomment following line if you want to disable colors in ls
# export DISABLE_LS_COLORS="true"
# export DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# export DISABLE_AUTO_TITLE="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Example format: plugins=(rails git textmate ruby lighthouse)
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git)
plugins=(git)
...
...
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