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