aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xiso8859-16
-rwxr-xr-xutf86
2 files changed, 10 insertions, 2 deletions
diff --git a/iso8859-1 b/iso8859-1
index da1d5a5..1af8033 100755
--- a/iso8859-1
+++ b/iso8859-1
@@ -1,3 +1,7 @@
#!/bin/sh
export LC_ALL=en_US.ISO8859-1
-exec "$@"
+case "$XTERM_SHELL" in
+$0) echo -n '%@'; exec "$@" ;;
+'') exec "$@" ;;
+*) echo -n '%@'; "$@"; echo -n '%G' ;;
+esac
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