Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
af729cc4
Commit
af729cc4
authored
Nov 22, 2012
by
Denys Lózko
Browse files
Add support of screen-* $TERM in screen plugin
parent
c2ae9e09
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/screen/screen.plugin.zsh
View file @
af729cc4
# if using GNU screen, let the zsh tell screen what the title and hardstatus
# if using GNU screen, let the zsh tell screen what the title and hardstatus
# of the tab window should be.
# of the tab window should be.
if
[[
$TERM
==
"
screen
"
]]
;
then
if
[[
"
$TERM
"
==
screen
*
]]
;
then
if
[[
$_GET_PATH
==
''
]]
;
then
if
[[
$_GET_PATH
==
''
]]
;
then
_GET_PATH
=
'echo $PWD | sed "s/^\/Users\//~/;s/^\/home\//~/;s/^~$USER/~/"'
_GET_PATH
=
'echo $PWD | sed "s/^\/Users\//~/;s/^\/home\//~/;s/^~$USER/~/"'
fi
fi
...
...
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