]> git.madduck.net Git - etc/ssh.git/blobdiff - .zsh/zshrc/parts.d/50-ssh

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

display error if sshproxy functions get no arguments
[etc/ssh.git] / .zsh / zshrc / parts.d / 50-ssh
index 8ece86be2a64cf9fa547a2945cd6af066207db36..0e6e62c801e5702640dd1031131c25c8ecbe36a7 100644 (file)
@@ -20,6 +20,7 @@ _ssh_proxy() {
   local cmd sshopts cmdopts
   cmd="$1"; shift
   sshopts="${*%%--*}"; sshopts="${sshopts%% }"
+  [[ -n "$sshopts" ]] || { ssh; return $? }
   cmdopts="${*#$sshopts}"; cmdopts="${cmdopts#*-- }"
   eval ssh $sshopts -t $cmd $cmdopts
 }