ssh function uses rxvt now, not xterm. more compatible
authorJoerg Jaspert <joerg@ganneff.de>
Wed, 6 Mar 2013 15:58:33 +0000 (16:58 +0100)
committerJoerg Jaspert <joerg@ganneff.de>
Wed, 6 Mar 2013 15:58:33 +0000 (16:58 +0100)
udh doesnt do so many / removals

.zsh/functions/ssh
.zsh/functions/udh

index d72c1ee..c30e1a8 100644 (file)
@@ -29,8 +29,8 @@ _jj_ssh() {
     # Also, when the same ZSH configuration is used on the remote host,
     # the locale is reset with the help of 12-Locale.zsh
     case "$TERM" in
-        rxvt-256color|rxvt-unicode*)
-            LC__ORIGINALTERM=$TERM TERM=xterm LANG=C LC_MESSAGES=C command ssh "$@"
+        rxvt-256color|rxvt-unicode)
+            LC__ORIGINALTERM=$TERM TERM=rxvt LANG=C LC_MESSAGES=C command ssh "$@"
             ;;
         *)
             LANG=C LC_MESSAGES=C command ssh "$@"
index 4c58e2f..996768c 100644 (file)
@@ -62,8 +62,8 @@ for entry in $workdirs[@]; do
     dirn=${dirn//distri:$DISTRI/}
     dirn=${dirn//user:$USER/}
     dirn=${dirn//user:$SUDO_USER/}
-    dirn=${${(j:/:)dirn}//\/\/##/}
-    dirn=${${(j:/:)dirn}//\/##/}
+#    dirn=${${(j:/:)dirn}//\/\/##/}
+#    dirn=${${(j:/:)dirn}//\/##/}
 
     echo "... ${HOME}/${dirn}/${base}"