summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorFredrik Appelberg <fredrik.appelberg@scanpix.se>2011-03-09 12:19:01 +0100
committerFredrik Appelberg <fredrik.appelberg@scanpix.se>2011-03-09 12:19:01 +0100
commitf1af41589960f7fc98d270c70a80b351b703e53e (patch)
tree4ee6c71af7eeff1577af23908ffadafe834a659f /plugins
parentda0cc3701e75e2c8be07ee4eb0dc6b1b68e3fa06 (diff)
downloadzsh-f1af41589960f7fc98d270c70a80b351b703e53e.tar.gz
zsh-f1af41589960f7fc98d270c70a80b351b703e53e.tar.bz2
zsh-f1af41589960f7fc98d270c70a80b351b703e53e.zip
figuring out home dir on unix systems as well
Diffstat (limited to 'plugins')
-rw-r--r--plugins/screen/screen.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/screen/screen.plugin.zsh b/plugins/screen/screen.plugin.zsh
index ba7ac67e7..98178e807 100644
--- a/plugins/screen/screen.plugin.zsh
+++ b/plugins/screen/screen.plugin.zsh
@@ -2,7 +2,7 @@
# of the tab window should be.
if [[ $TERM == "screen" ]]; 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
if [[ $_GET_HOST == '' ]]; then
_GET_HOST='echo $HOST | sed "s/\..*//"'