Skip to content

Instantly share code, notes, and snippets.

@takesato
Last active August 29, 2015 14:23
Show Gist options
  • Save takesato/0b714de71f46e3c182b3 to your computer and use it in GitHub Desktop.
Save takesato/0b714de71f46e3c182b3 to your computer and use it in GitHub Desktop.
今いるディレクトリに .ssh_config があったらそっちを使って ssh する
ssh() {
if [ -f ".ssh_config" ]; then
/usr/bin/ssh -F .ssh_config "$@"
else
/usr/bin/ssh "$@"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment