From edce9781e6125a3961a5ca456e5a32a9b2fdc509 Mon Sep 17 00:00:00 2001 From: Ian Foster Date: Tue, 4 Feb 2014 11:29:36 -0800 Subject: [PATCH] ssh config --- link.sh | 19 ++++++++++++++++--- ssh/.gitignore | 2 ++ 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 ssh/.gitignore diff --git a/link.sh b/link.sh index 3c099d9..2eda730 100755 --- a/link.sh +++ b/link.sh @@ -114,15 +114,28 @@ function scripts { done } +function ssh { + echo "Linking ssh" + SSH_CONFIG=~/Dropbox/config/ssh + if [ -e "$SSH_CONFIG" ]; + then + link $SSH_CONFIG ~/.ssh/config + else + echo "$SSH_CONFIG does not exist!" + fi +} + + function run { - if [ $1 == "git" ]; + p="${1%/}" + if [ $p == "git" ]; then c="git_config" - elif [ $1 == "sublime-text-3" ]; + elif [ $p == "sublime-text-3" ]; then c="sublime" else - c=$1 + c=$p fi eval ${c} } diff --git a/ssh/.gitignore b/ssh/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/ssh/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore -- 1.9.1