aboutsummaryrefslogtreecommitdiff
path: root/utf8
diff options
context:
space:
mode:
Diffstat (limited to 'utf8')
-rwxr-xr-xutf86
1 files changed, 5 insertions, 1 deletions
diff --git a/utf8 b/utf8
index 21598b3..58460bd 100755
--- a/utf8
+++ b/utf8
@@ -1,3 +1,7 @@
#!/bin/sh
export LC_ALL=en_US.UTF-8
-exec "$@"
+case "$XTERM_SHELL" in
+$0) echo -n '%G'; exec "$@" ;;
+'') exec "$@" ;;
+*) echo -n '%G'; "$@"; echo -n '%@' ;;
+esac