9369d923e46de4dc3920e9e3695a94b8cf6b756d

Author
Pavle Portic <git@theedgeofrage.com>
Committer
Pavle Portic <git@theedgeofrage.com>
Date

Message

Pass remaining cmdline arguments to dssh as command

Diff

 1diff --git a/dot_config/zsh/functions/dssh b/dot_config/zsh/functions/dssh
 2index 40935e1c64914a11bad0bffa5a66e210fb39feb0..67f6128a5cd377df1e271e520a41a50d8e94dc6d 100644
 3--- a/dot_config/zsh/functions/dssh
 4+++ b/dot_config/zsh/functions/dssh
 5@@ -14,4 +14,6 @@ aws ec2-instance-connect send-ssh-public-key \
 6 --instance-os-user "$SSH_USER" \
 7 --ssh-public-key "file://$SSH_KEY.pub" \
 8 || (echo "Failed to send public key file://$SSH_KEY.pub to AWS" && return 1)
 9-ssh -i "$SSH_KEY" "$SSH_USER@$1"
10+HOST=$1
11+shift 1
12+ssh -i "$SSH_KEY" "$SSH_USER@$HOST" $@