Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set icon name from tpope screen

  • Loading branch information...
commit b5581ac3b5e65c0beb1b13a43ccad75d71b16365 1 parent b9ac62e
@tpope authored
Showing with 9 additions and 5 deletions.
  1. +9 −5 bin/tpope
View
14 bin/tpope
@@ -362,11 +362,15 @@ case "$basename" in
exec "$HOME/bin/tpope-media" "$@" ;;
screen)
- if [ "$TERM" = "rxvt" -a -f /usr/share/terminfo/r/rxvt-unicode ]; then
- TERM=rxvt-unicode
- fi
- exec screen "$@"
- ;;
+ if [ "$TERM" = "rxvt" -a -f /usr/share/terminfo/r/rxvt-unicode ]; then
+ TERM=rxvt-unicode
+ fi
+ case "$TERM" in
+ screen*|xterm*|rxvt*)
+ printf '\033]1;@%s\007' `tpope host name` ;;
+ esac
+ exec screen "$@"
+ ;;
sursync|suscp) # rsync
for arg in "$@"; do
Please sign in to comment.
Something went wrong with that request. Please try again.