mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
prompt info func for screen
This commit is contained in:
parent
c79e5a97a9
commit
abcf09cb91
1 changed files with 18 additions and 1 deletions
|
|
@ -52,3 +52,20 @@ if [[ "$TERM" == screen* ]]; then
|
|||
screen_set $tab_title $tab_hardstatus
|
||||
}
|
||||
fi
|
||||
|
||||
function screen_prompt_info() {
|
||||
r=""
|
||||
# I'm not thrilled about this method of testing
|
||||
if [ x"$TERM" = x"screen" ] ;then
|
||||
if [ x"$STY" != x"" ] ; then
|
||||
r="$STY"
|
||||
fi
|
||||
fi
|
||||
if [ x"$r" = x"" ] ; then
|
||||
echo ""
|
||||
else
|
||||
pre=$1
|
||||
post=$2
|
||||
echo "$pre$r$post"
|
||||
fi
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue