summaryrefslogtreecommitdiff
path: root/plugins/screen
diff options
context:
space:
mode:
authorMarc Cornellà <hello@mcornella.com>2021-03-25 12:08:00 +0100
committerMarc Cornellà <hello@mcornella.com>2021-03-25 12:08:00 +0100
commit02d07f3e3dba0d50b1d907a8062bbaca18f88478 (patch)
treecbac73b3b000eb85971f0f37ab2dfea3334cd05d /plugins/screen
parent95a06f3927a286db257dc99791b02caba757fe33 (diff)
downloadzsh-02d07f3e3dba0d50b1d907a8062bbaca18f88478.tar.gz
zsh-02d07f3e3dba0d50b1d907a8062bbaca18f88478.tar.bz2
zsh-02d07f3e3dba0d50b1d907a8062bbaca18f88478.zip
fix: use `$USERNAME` guaranteed to always be defined in zsh
Fixes #9701
Diffstat (limited to 'plugins/screen')
-rw-r--r--plugins/screen/screen.plugin.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/screen/screen.plugin.zsh b/plugins/screen/screen.plugin.zsh
index 7009e7a91..c1db8ad92 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/^\/home\//~/;s/^~$USER/~/"'
+ _GET_PATH='echo $PWD | sed "s/^\/Users\//~/;s/^\/home\//~/;s/^~$USERNAME/~/"'
fi
if [[ $_GET_HOST == '' ]]; then
_GET_HOST='echo $HOST | sed "s/\..*//"'
@@ -51,4 +51,4 @@ if [[ "$TERM" == screen* ]]; then
eval "tab_hardstatus=$TAB_HARDSTATUS_PREFIX:$TAB_HARDSTATUS_PROMPT"
screen_set $tab_title $tab_hardstatus
}
-fi \ No newline at end of file
+fi