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
Ohmyzsh
Commits
f1af4158
Commit
f1af4158
authored
Mar 09, 2011
by
Fredrik Appelberg
Browse files
figuring out home dir on unix systems as well
parent
da0cc370
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/screen/screen.plugin.zsh
View file @
f1af4158
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# 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/^~$USER/~/"'
_GET_PATH
=
'echo $PWD | sed "s/^\/Users\//~/;s/^
\/home\//~/;s/^
~$USER/~/"'
fi
fi
if
[[
$_GET_HOST
==
''
]]
;
then
if
[[
$_GET_HOST
==
''
]]
;
then
_GET_HOST
=
'echo $HOST | sed "s/\..*//"'
_GET_HOST
=
'echo $HOST | sed "s/\..*//"'
...
...
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