diff options
-rwxr-xr-x | iso8859-1 | 6 | ||||
-rwxr-xr-x | utf8 | 6 |
2 files changed, 10 insertions, 2 deletions
@@ -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 @@ -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 |