aboutsummaryrefslogtreecommitdiff
path: root/iso8859-1
diff options
context:
space:
mode:
Diffstat (limited to 'iso8859-1')
-rwxr-xr-xiso8859-16
1 files changed, 5 insertions, 1 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